public function ClientTest::testGetInternalResponse in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\ClientTest::testGetInternalResponse()
File
- vendor/
symfony/ browser-kit/ Tests/ ClientTest.php, line 123
Class
Namespace
Symfony\Component\BrowserKit\TestsCode
public function testGetInternalResponse() {
$client = new TestClient();
$client
->setNextResponse(new SpecialResponse('foo'));
$client
->request('GET', 'http://example.com/');
$this
->assertInstanceOf('Symfony\\Component\\BrowserKit\\Response', $client
->getInternalResponse());
$this
->assertNotInstanceOf('Symfony\\Component\\BrowserKit\\Tests\\SpecialResponse', $client
->getInternalResponse());
$this
->assertInstanceOf('Symfony\\Component\\BrowserKit\\Tests\\SpecialResponse', $client
->getResponse());
}