public function CookieTest::testCookieIsCleared

File

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

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');
}