You are here

public function CookieTest::testGetPath in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testGetPath()
  2. 8.0 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testGetPath()
Same name and namespace in other branches
  1. 8 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testGetPath()

File

vendor/symfony/browser-kit/Tests/CookieTest.php, line 126

Class

CookieTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testGetPath() {
  $cookie = new Cookie('foo', 'bar', 0);
  $this
    ->assertEquals('/', $cookie
    ->getPath(), '->getPath() returns / is no path is defined');
  $cookie = new Cookie('foo', 'bar', 0, '/foo');
  $this
    ->assertEquals('/foo', $cookie
    ->getPath(), '->getPath() returns the cookie path');
}