| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function itCanProvidePaginationNextAndPrevLinks() |
||
| 24 | { |
||
| 25 | $links = new PaginationLinks( |
||
| 26 | 'http://domain.tld?page=1', |
||
| 27 | 'http://domain.tld?page=5', |
||
| 28 | 'http://domain.tld?page=3', |
||
| 29 | 'http://domain.tld?page=2' |
||
| 30 | ); |
||
| 31 | |||
| 32 | assertThat($links->hasNext(), isTrue()); |
||
| 33 | assertThat($links->hasPrev(), isTrue()); |
||
| 34 | assertThat($links->getNext(), equalTo('http://domain.tld?page=3')); |
||
| 35 | assertThat($links->getPrev(), equalTo('http://domain.tld?page=2')); |
||
| 36 | } |
||
| 38 |