You are here

public function CookieJarTest::testCookieExpireWithNullPaths 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::testCookieExpireWithNullPaths()

File

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

Class

CookieJarTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

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