protected function TestClient::filterResponse in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\TestClient::filterResponse()
Filters the origin response to the BrowserKit one.
Parameters
object $response The origin response to filter:
Return value
Response An BrowserKit Response instance
Overrides Client::filterResponse
File
- vendor/
symfony/ browser-kit/ Tests/ ClientTest.php, line 50
Class
Namespace
Symfony\Component\BrowserKit\TestsCode
protected function filterResponse($response) {
if ($response instanceof SpecialResponse) {
return new Response($response
->getContent(), $response
->getStatus(), $response
->getHeaders());
}
return $response;
}