You are here

protected function BrowserKitDriver::getResponse in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::getResponse()

Return value

Response

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\Driver

Code

protected function getResponse() {
  $response = $this->client
    ->getInternalResponse();
  if (null === $response) {
    throw new DriverException('Unable to access the response before visiting a page');
  }
  return $response;
}