You are here

public function CookieJarTest::testEncodedValues in Zircon Profile 8

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

File

vendor/symfony/browser-kit/Tests/CookieJarTest.php, line 145

Class

CookieJarTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testEncodedValues() {
  $cookieJar = new CookieJar();
  $cookieJar
    ->set($cookie = new Cookie('foo', 'bar%3Dbaz', null, '/', '', false, true, true));
  $this
    ->assertEquals(array(
    'foo' => 'bar=baz',
  ), $cookieJar
    ->allValues('/'));
  $this
    ->assertEquals(array(
    'foo' => 'bar%3Dbaz',
  ), $cookieJar
    ->allRawValues('/'));
}