/** * @param string $expextedQueryString * @param int $expectedOffset * @param \Apache_Solr_Response $fakeResponse */ public function assertOneSearchWillBeTriggeredWithQueryAndShouldReturnFakeResponse($expextedQueryString, $expectedOffset, \Apache_Solr_Response $fakeResponse) { $this->searchMock->expects($this->once())->method('search')->with($expextedQueryString, $expectedOffset, null)->will($this->returnValue($fakeResponse)); }