public function testGetNbResults() { $this->resultSet->expects($this->once())->method('getTotalHits')->will($this->returnValue(100)); $this->assertSame(100, $this->adapter->getNbResults()); }