function BrowserKitDriver::getCookiePath
Returns current cookie path.
1 call to BrowserKitDriver::getCookiePath()
- BrowserKitDriver::deleteCookie in vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php - Deletes a cookie by name.
File
-
vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php, line 251
Class
- BrowserKitDriver
- Symfony BrowserKit driver.
Namespace
Behat\Mink\DriverCode
private function getCookiePath() : string {
$path = parse_url($this->getCurrentUrl(), PHP_URL_PATH);
if ($path === null || $path === false || $path === '') {
$path = '/';
}
if ('\\' === DIRECTORY_SEPARATOR) {
$path = str_replace('\\', '/', $path);
}
return $path;
}