public function CookieJarTest::testExpire in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\BrowserKit\TestsCode
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');
}