private mockClient ( $path, Guzzle\Http\Message\Response $response, $method ) | ||
$response | Guzzle\Http\Message\Response |
private function mockClient($path, Response $response, $method)
{
$this->client->expects($this->once())->method($method)->with($path)->will($this->returnValue($this->request));
$this->client->expects($this->once())->method('send')->with($this->request)->will($this->returnValue($response));
}