You are here

protected function TestClient::doRequest in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\TestClient::doRequest()
  2. 8 vendor/behat/mink-browserkit-driver/tests/Custom/ErrorHandlingTest.php \Behat\Mink\Tests\Driver\Custom\TestClient::doRequest()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\TestClient::doRequest()

Makes a request.

Parameters

object $request An origin request instance:

Return value

object An origin response instance

Overrides Client::doRequest

File

vendor/symfony/browser-kit/Tests/ClientTest.php, line 38

Class

TestClient

Namespace

Symfony\Component\BrowserKit\Tests

Code

protected function doRequest($request) {
  if (null === $this->nextResponse) {
    return new Response();
  }
  $response = $this->nextResponse;
  $this->nextResponse = null;
  return $response;
}