@@ 18-26 (lines=9) @@ | ||
15 | $this->assertEquals($limit, count($paginable->iterate())); |
|
16 | } |
|
17 | ||
18 | public function testKeys() |
|
19 | { |
|
20 | $paginable = $this->firstPagePaginable(3); |
|
21 | ||
22 | $data = $paginable->iterate(); |
|
23 | ||
24 | $this->assertArrayHasKey('one', $data); |
|
25 | $this->assertArrayNotHasKey('four', $data); |
|
26 | } |
|
27 | ||
28 | public function testNextPage() |
|
29 | { |
|
@@ 28-35 (lines=8) @@ | ||
25 | $this->assertArrayNotHasKey('four', $data); |
|
26 | } |
|
27 | ||
28 | public function testNextPage() |
|
29 | { |
|
30 | $paginable = $this->anotherPagePaginable(3, 2); |
|
31 | $data = $paginable->iterate(); |
|
32 | ||
33 | $this->assertArrayHasKey('four', $data); |
|
34 | $this->assertArrayNotHasKey('one', $data); |
|
35 | } |
|
36 | ||
37 | public function testIteratedData() |
|
38 | { |