public function CookieTest::testGetValue in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testGetValue()
- 8.0 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testGetValue()
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\BrowserKit\TestsCode
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');
}