public function CookieTest::testIsHttponly in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testIsHttpOnly()
- 8.0 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testIsHttponly()
Same name and namespace in other branches
- 8 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testIsHttponly()
File
- vendor/
symfony/ browser-kit/ Tests/ CookieTest.php, line 150
Class
Namespace
Symfony\Component\BrowserKit\TestsCode
public function testIsHttponly() {
$cookie = new Cookie('foo', 'bar');
$this
->assertTrue($cookie
->isHttpOnly(), '->isHttpOnly() returns false if not defined');
$cookie = new Cookie('foo', 'bar', 0, '/', 'foo.com', false, true);
$this
->assertTrue($cookie
->isHttpOnly(), '->isHttpOnly() returns the cookie httponly flag');
}