You are here

public function BrowserKitDriver::setRemoveScriptFromUrl 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::setRemoveScriptFromUrl()

Tells driver to remove script name from URL.

Parameters

Boolean $remove:

Deprecated

Deprecated as of 1.2, to be removed in 2.0. Pass the base url in the constructor instead.

File

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

Class

BrowserKitDriver
Symfony2 BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

public function setRemoveScriptFromUrl($remove = true) {
  trigger_error('setRemoveScriptFromUrl() is deprecated as of 1.2 and will be removed in 2.0. Pass the base url in the constructor instead.', E_USER_DEPRECATED);
  $this->removeScriptFromUrl = (bool) $remove;
}