protected function BrowserKitDriver::getResponse in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::getResponse()
Return value
Throws
DriverException If there is not response yet
File
- vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php, line 539
Class
- BrowserKitDriver
- Symfony2 BrowserKit driver.
Namespace
Behat\Mink\DriverCode
protected function getResponse() {
$response = $this->client
->getInternalResponse();
if (null === $response) {
throw new DriverException('Unable to access the response before visiting a page');
}
return $response;
}