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