You are here

public function BrowserKitDriver::stop in Zircon Profile 8.0

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

Stops driver.

Once stopped, the driver should be started again before using it again.

Calling any action on a stopped driver is an undefined behavior. The only supported method call after stopping a driver is starting it again.

Calling stop on a stopped driver is an undefined behavior. Driver implementations are free to handle it silently or to fail with an exception.

Throws

DriverException When the driver cannot be closed

Overrides CoreDriver::stop

File

vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php, line 122

Class

BrowserKitDriver
Symfony2 BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

public function stop() {
  $this
    ->reset();
  $this->started = false;
}