| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | public function testDebugInfo() |
||
| 13 | { |
||
| 14 | /** @var MockObject&Query */ |
||
| 15 | $builder = $this->getMockBuilder(Query::class) |
||
| 16 | ->disableOriginalConstructor() |
||
| 17 | ->getMock(); |
||
| 18 | |||
| 19 | $paginator = (new Paginator($builder)) |
||
| 20 | ->orderBy('modified') |
||
| 21 | ->orderBy('id') |
||
| 22 | ->limit(3) |
||
| 23 | ->forward() |
||
| 24 | ->inclusive() |
||
| 25 | ->seekable(); |
||
| 26 | |||
| 27 | $actual = $paginator->__debugInfo(); |
||
| 28 | $this->assertEquals([ |
||
| 29 | 'query' => [ |
||
| 30 | 'orders' => [ |
||
| 31 | new Order('modified', 'asc'), |
||
| 32 | new Order('id', 'asc'), |
||
| 33 | ], |
||
| 34 | 'limit' => 3, |
||
| 35 | 'forward' => true, |
||
| 36 | 'inclusive' => true, |
||
| 37 | 'seekable' => true, |
||
| 38 | ], |
||
| 39 | ], $actual); |
||
| 40 | } |
||
| 42 |