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()); }
public function testGetPage() { $paginator = new Paginator($this->data); $page = $paginator->getPage(1); $this->assertTrue($page instanceof PageInterface); }