Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class PorpaginasAdapterTest extends TestCase |
||
11 | { |
||
12 | /** |
||
13 | * @test |
||
14 | */ |
||
15 | public function it_counts_total_number_of_results(): void |
||
16 | { |
||
17 | $pagerfanta = new Pagerfanta( |
||
18 | new PorpaginasAdapter( |
||
19 | new ArrayResult([1, 2, 3, 4]) |
||
20 | ) |
||
21 | ); |
||
22 | |||
23 | $this->assertEquals(4, $pagerfanta->getNbResults()); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @test |
||
28 | */ |
||
29 | public function it_iterates_slice(): void |
||
45 | } |
||
46 | } |
||
47 |