You are here

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

Tells driver to remove hostname 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 78

Class

BrowserKitDriver
Symfony2 BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

public function setRemoveHostFromUrl($remove = true) {
  trigger_error('setRemoveHostFromUrl() 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->removeHostFromUrl = (bool) $remove;
}