You are here

public function CookieTest::testCookieIsNotCleared 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::testCookieIsNotCleared()

File

vendor/symfony/http-foundation/Tests/CookieTest.php, line 132

Class

CookieTest
CookieTest.

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testCookieIsNotCleared() {
  $cookie = new Cookie('foo', 'bar', time() + 3600 * 24);
  $this
    ->assertFalse($cookie
    ->isCleared(), '->isCleared() returns false if the cookie did not expire yet');
}