public function CookieTest::testCookieIsCleared in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testCookieIsCleared()
File
- vendor/
symfony/ http-foundation/ Tests/ CookieTest.php, line 139
Class
- CookieTest
- CookieTest.
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testCookieIsCleared() {
$cookie = new Cookie('foo', 'bar', time() - 20);
$this
->assertTrue($cookie
->isCleared(), '->isCleared() returns true if the cookie has expired');
}