You are here

private function BrowserKitDriver::getCookiePath 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::getCookiePath()

Returns current cookie path.

Return value

string

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 267

Class

BrowserKitDriver
Symfony2 BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

private function getCookiePath() {
  $path = dirname(parse_url($this
    ->getCurrentUrl(), PHP_URL_PATH));
  if ('\\' === DIRECTORY_SEPARATOR) {
    $path = str_replace('\\', '/', $path);
  }
  return $path;
}