buildClient(); $this->assertInstanceOf('\OpenStack\Transport\GuzzleClient', $client); $response = $client->doRequest($url, $method); $this->assertInstanceOf('\GuzzleHttp\Message\Response', $response); } /** * @depends testDoRequest * @expectedException \OpenStack\Transport\FileNotFoundException */ public function testDoRequestException() { $url = 'http://www.openstack.org/this-does-no-exist'; $method = 'GET'; $client = $this->buildClient(); $client->doRequest($url, $method); } }