Пример #1
0
 public function testHasOtherPages()
 {
     $page = $this->paginator->getPage(1);
     $this->assertTrue($page->hasOtherPages());
     $paginator = new Paginator(new PaginatedArray(array(1)));
     $page = $paginator->getPage(1);
     $this->assertFalse($page->hasOtherPages());
 }
Пример #2
0
 public function testGetPage()
 {
     $paginator = new Paginator($this->data);
     $page = $paginator->getPage(1);
     $this->assertTrue($page instanceof PageInterface);
 }