public function testIsNotLastIfMoreItemsAfterThisPage() { $strategy = $this->getMockStrategy(); $strategy->method('getLimit')->willReturn(array(10, 5)); $adapter = $this->getMockAdapter(); $adapter->method('getItems')->willReturn(array_fill(0, 6, null)); $page = new Page($adapter, $strategy, 5, 3); $this->assertFalse($page->isLast()); }