You are here

public function CookieTest::testGetValue 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::testGetValue()
  2. 8.0 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testGetValue()
Same name and namespace in other branches
  1. 8 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testGetValue()

File

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

Class

CookieTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testGetValue() {
  $cookie = new Cookie('foo', 'bar');
  $this
    ->assertEquals('bar', $cookie
    ->getValue(), '->getValue() returns the cookie value');
  $cookie = new Cookie('foo', 'bar%3Dbaz', null, '/', '', false, true, true);

  // raw value
  $this
    ->assertEquals('bar=baz', $cookie
    ->getValue(), '->getValue() returns the urldecoded cookie value');
}