You are here

protected function TestClient::filterResponse in Zircon Profile 8

Same name and namespace in other branches
  1. 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

TestClient

Namespace

Symfony\Component\BrowserKit\Tests

Code

protected function filterResponse($response) {
  if ($response instanceof SpecialResponse) {
    return new Response($response
      ->getContent(), $response
      ->getStatus(), $response
      ->getHeaders());
  }
  return $response;
}