You are here

public function CoreDriver::reset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Driver/CoreDriver.php \Behat\Mink\Driver\CoreDriver::reset()

Resets driver state.

This should reset cookies, request headers and basic authentication. When possible, the history should be reset as well, but this is not enforced as some implementations may not be able to reset it without restarting the driver entirely. Consumers requiring a clean history should restart the driver to enforce it.

Once reset, the driver should be ready to visit a page. Calling any action before visiting a page is an undefined behavior. The only supported method calls on a fresh driver are

  • visit()
  • setRequestHeader()
  • setBasicAuth()
  • reset()
  • stop()

Calling reset on a stopped driver is an undefined behavior.

Overrides DriverInterface::reset

1 method overrides CoreDriver::reset()
BrowserKitDriver::reset in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
Resets driver state.

File

vendor/behat/mink/src/Driver/CoreDriver.php, line 65

Class

CoreDriver
Core driver. All other drivers should extend this class for future compatibility.

Namespace

Behat\Mink\Driver

Code

public function reset() {
  throw new UnsupportedDriverActionException('Resetting the driver is not supported by %s', $this);
}