public function BrowserKitDriver::reset 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::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 CoreDriver::reset
2 calls to BrowserKitDriver::reset()
- BrowserKitDriver::stop in vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php - Stops driver.
- GoutteDriver::reset in vendor/
behat/ mink-goutte-driver/ src/ GoutteDriver.php - Resets driver state.
1 method overrides BrowserKitDriver::reset()
- GoutteDriver::reset in vendor/
behat/ mink-goutte-driver/ src/ GoutteDriver.php - Resets driver state.
File
- vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php, line 131
Class
- BrowserKitDriver
- Symfony2 BrowserKit driver.
Namespace
Behat\Mink\DriverCode
public function reset() {
// Restarting the client resets the cookies and the history
$this->client
->restart();
$this->forms = array();
$this->serverParameters = array();
}