You are here

public function CookieJarTest::testExpire in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Tests/CookieJarTest.php \Symfony\Component\BrowserKit\Tests\CookieJarTest::testExpire()

File

vendor/symfony/browser-kit/Tests/CookieJarTest.php, line 33

Class

CookieJarTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testExpire() {
  $cookieJar = new CookieJar();
  $cookieJar
    ->set($cookie = new Cookie('foo', 'bar'));
  $cookieJar
    ->expire('foo');
  $this
    ->assertNull($cookieJar
    ->get('foo'), '->get() returns null if the cookie is expired');
}