public function CookieTest::testGetRawValue in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\BrowserKit\TestsCode
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');
}