Пример #1
0
 public function testPagination_WithNegativeCurrentPage()
 {
     $pagination = new Pagination(-2, 2, 0);
     $this->assertEquals(1, $pagination->getCurrentPage());
     $this->assertEquals(0, $pagination->getOffset());
 }