You are here

public function CookieJarTest::testAll in Zircon Profile 8.0

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

File

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

Class

CookieJarTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

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');
}