You are here

protected function TestClient::doRequest in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\TestClient::doRequest()
  2. 8.0 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 vendor/behat/mink-browserkit-driver/tests/Custom/ErrorHandlingTest.php \Behat\Mink\Tests\Driver\Custom\TestClient::doRequest()

Makes a request.

Parameters

object $request An origin request instance:

Return value

object An origin response instance

Overrides Client::doRequest

File

vendor/behat/mink-browserkit-driver/tests/Custom/ErrorHandlingTest.php, line 170

Class

TestClient

Namespace

Behat\Mink\Tests\Driver\Custom

Code

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