public function CookieTest::testIsSecure

File

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

Class

CookieTest
CookieTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testIsSecure() {
  $cookie = new Cookie('foo', 'bar', 3600, '/', '.myfoodomain.com', true);
  $this
    ->assertTrue($cookie
    ->isSecure(), '->isSecure() returns whether the cookie is transmitted over HTTPS');
}