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/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testIsHttpOnly()
File
- vendor/
symfony/ http-foundation/ Tests/ CookieTest.php, line 125
Class
- CookieTest
- CookieTest.
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testIsHttpOnly() {
$cookie = new Cookie('foo', 'bar', 3600, '/', '.myfoodomain.com', false, true);
$this
->assertTrue($cookie
->isHttpOnly(), '->isHttpOnly() returns whether the cookie is only transmitted over HTTP');
}