You are here

public function CookieTest::testCookieIsCleared in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Tests

Code

public function testCookieIsCleared() {
  $cookie = new Cookie('foo', 'bar', time() - 20);
  $this
    ->assertTrue($cookie
    ->isCleared(), '->isCleared() returns true if the cookie has expired');
}