protected function TestClient::doRequest in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\TestClient::doRequest()
- 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
- 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
Namespace
Behat\Mink\Tests\Driver\CustomCode
protected function doRequest($request) {
if (null === $this->nextResponse) {
return new Response();
}
$response = $this->nextResponse;
$this->nextResponse = null;
return $response;
}