public function CookieJarTest::testClear 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::testClear()
File
- vendor/
symfony/ browser-kit/ Tests/ CookieJarTest.php, line 50
Class
Namespace
Symfony\Component\BrowserKit\TestsCode
public function testClear() {
$cookieJar = new CookieJar();
$cookieJar
->set($cookie1 = new Cookie('foo', 'bar'));
$cookieJar
->set($cookie2 = new Cookie('bar', 'foo'));
$cookieJar
->clear();
$this
->assertEquals(array(), $cookieJar
->all(), '->clear() expires all cookies');
}