public function ClientTest::testNullResponseException in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/fabpot/goutte/Goutte/Tests/ClientTest.php \Goutte\Tests\ClientTest::testNullResponseException()
File
- vendor/
fabpot/ goutte/ Goutte/ Tests/ ClientTest.php, line 340
Class
- ClientTest
- Goutte Client Test.
Namespace
Goutte\TestsCode
public function testNullResponseException() {
$this
->setExpectedException('GuzzleHttp\\Exception\\RequestException');
$guzzle = $this
->getGuzzle([
new RequestException('', $this
->getMock('Psr\\Http\\Message\\RequestInterface')),
]);
$client = new Client();
$client
->setClient($guzzle);
$client
->request('GET', 'http://www.example.com/');
$client
->getResponse();
}