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