/** * @expectedException Guzzle\Http\Exception\ServerErrorResponseException * @expectedExceptionMessage Server error response */ public function testWillRethrowExceptionWhenCheckingIfAnImageIdentifierExistsAndTheServerResponseWithAServerError() { $this->setMockResponse($this->client, 'server_error'); $this->client->imageIdentifierExists('id1'); }