public function CookieJarTest::testCookieExpireWithNullPaths in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/browser-kit/Tests/CookieJarTest.php \Symfony\Component\BrowserKit\Tests\CookieJarTest::testCookieExpireWithNullPaths()
File
- vendor/
symfony/ browser-kit/ Tests/ CookieJarTest.php, line 167
Class
Namespace
Symfony\Component\BrowserKit\TestsCode
public function testCookieExpireWithNullPaths() {
$cookieJar = new CookieJar();
$cookieJar
->set($cookie1 = new Cookie('foo', 'bar1', null, '/'));
$cookieJar
->expire('foo', null);
$this
->assertNull($cookieJar
->get('foo'), '->get() returns null if the cookie is expired');
$this
->assertEquals(array(), array_keys($cookieJar
->allValues('http://example.com/')));
}