예제 #1
0
 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());
 }