public function ResponseHeaderBagTest::testClearCookieSecureNotHttpOnly in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/ResponseHeaderBagTest.php \Symfony\Component\HttpFoundation\Tests\ResponseHeaderBagTest::testClearCookieSecureNotHttpOnly()
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseHeaderBagTest.php, line 136
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testClearCookieSecureNotHttpOnly() {
$bag = new ResponseHeaderBag(array());
$bag
->clearCookie('foo', '/', null, true, false);
$this
->assertRegExp('#^Set-Cookie: foo=deleted; expires=' . gmdate('D, d-M-Y H:i:s T', time() - 31536001) . '; path=/; secure#m', $bag
->__toString());
}