public function testGetIteratorEmpty() { $this->config->expects($this->once())->method('getTotalPages')->will($this->returnValue(1)); $this->config->expects($this->never())->method('getCurrentPage'); $this->config->expects($this->never())->method('getPageLink'); $this->config->expects($this->never())->method('getFirstPageLink'); $this->range->expects($this->never())->method('getLeftOffset'); $this->range->expects($this->never())->method('getRightOffset'); $this->assertEquals(new ArrayCollection(), $this->view->getIterator()); }