Code Duplication    Length = 9-10 lines in 2 locations

tests/PaginationTest.php 2 locations

@@ 31-40 (lines=10) @@
28
        self::assertInstanceOf(Pagination::class, $this->pagination);
29
    }
30
31
    public function testPage()
32
    {
33
        $this->pagination->setLimit(10);
34
        $this->pagination->setPage(2);
35
        self::assertEquals(2, $this->pagination->getPage());
36
37
        $activity = $this->client->getReceiver(Client::ACTIVITY);
38
        $events   = $activity->getReceiver(Activity::EVENTS);
39
        self::assertCount(10, $events->listPublicEvents());
40
    }
41
42
    public function testLimit()
43
    {
@@ 42-50 (lines=9) @@
39
        self::assertCount(10, $events->listPublicEvents());
40
    }
41
42
    public function testLimit()
43
    {
44
        $this->pagination->setLimit(10);
45
        self::assertEquals(10, $this->pagination->getLimit());
46
47
        $activity = $this->client->getReceiver(Client::ACTIVITY);
48
        $events   = $activity->getReceiver(Activity::EVENTS);
49
        self::assertCount(10, $events->listPublicEvents());
50
    }
51
}