You are here

public function DriverInterface::reset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Driver/DriverInterface.php \Behat\Mink\Driver\DriverInterface::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.

1 method overrides DriverInterface::reset()
CoreDriver::reset in vendor/behat/mink/src/Driver/CoreDriver.php
Resets driver state.

File

vendor/behat/mink/src/Driver/DriverInterface.php, line 96

Class

DriverInterface
Driver interface.

Namespace

Behat\Mink\Driver

Code

public function reset();