예제 #1
0
파일: PageTest.php 프로젝트: kgilden/pager
 public function testIsNotOutOfBoundsIfNoItemsFoundOnFirstPage()
 {
     $adapter = $this->getMockAdapter();
     $adapter->method('getItems')->willReturn(array());
     $page = new Page($adapter, $this->getMockStrategy(), 5, 1);
     $this->assertFalse($page->isOutOfBounds(), 'Being on 1-st page without results implies there are no items - means we\'re not out of bounds.');
 }