public function CookieTest::testIsHttpOnly

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/CookieTest.php, line 96

Class

CookieTest
CookieTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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');
}