public function testPageCountNeverLessThanOne() { $strategy = $this->getMockStrategy(); $strategy->method('getCount')->willReturn(0); $page = new Page($this->getMockAdapter(), $strategy, 1, 5); $this->assertEquals(1, $page->getPageCount()); }