| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function itProvidePaginationFirstAndLastLinks() |
||
| 10 | { |
||
| 11 | $links = new PaginationLinks( |
||
| 12 | 'http://domain.tld?page=1', |
||
| 13 | 'http://domain.tld?page=5' |
||
| 14 | ); |
||
| 15 | |||
| 16 | assertThat($links->getFirst(), equalTo('http://domain.tld?page=1')); |
||
| 17 | assertThat($links->getLast(), equalTo('http://domain.tld?page=5')); |
||
| 18 | assertThat($links->hasNext(), isFalse()); |
||
| 19 | assertThat($links->hasPrev(), isFalse()); |
||
| 20 | } |
||
| 38 |