You are here

public function CookieTest::testGetRawValue in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testGetRawValue()

File

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

Class

CookieTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testGetRawValue() {
  $cookie = new Cookie('foo', 'bar=baz');

  // decoded value
  $this
    ->assertEquals('bar%3Dbaz', $cookie
    ->getRawValue(), '->getRawValue() returns the urlencoded cookie value');
  $cookie = new Cookie('foo', 'bar%3Dbaz', null, '/', '', false, true, true);

  // raw value
  $this
    ->assertEquals('bar%3Dbaz', $cookie
    ->getRawValue(), '->getRawValue() returns the non-urldecoded cookie value');
}