protected function BrowserKitDriver::prepareUrl in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::prepareUrl()
Prepares URL for visiting. Removes "*.php/" from urls and then passes it to BrowserKitDriver::visit().
Parameters
string $url:
Return value
string
1 call to BrowserKitDriver::prepareUrl()
- BrowserKitDriver::visit in vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php - Visit specified URL.
1 method overrides BrowserKitDriver::prepareUrl()
- GoutteDriver::prepareUrl in vendor/
behat/ mink-goutte-driver/ src/ GoutteDriver.php - Prepares URL for visiting. Removes "*.php/" from urls and then passes it to BrowserKitDriver::visit().
File
- vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php, line 558
Class
- BrowserKitDriver
- Symfony2 BrowserKit driver.
Namespace
Behat\Mink\DriverCode
protected function prepareUrl($url) {
$replacement = ($this->removeHostFromUrl ? '' : '$1') . ($this->removeScriptFromUrl ? '' : '$2');
return preg_replace('#(https?\\://[^/]+)(/[^/\\.]+\\.php)?#', $replacement, $url);
}