protected function TestClient::doRequest in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\TestClient::doRequest()
- 8 vendor/behat/mink-browserkit-driver/tests/Custom/ErrorHandlingTest.php \Behat\Mink\Tests\Driver\Custom\TestClient::doRequest()
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\BrowserKit\TestsCode
protected function doRequest($request) {
if (null === $this->nextResponse) {
return new Response();
}
$response = $this->nextResponse;
$this->nextResponse = null;
return $response;
}