You are here

public function CookieTest::testFromStringWithCapitalization in Zircon Profile 8

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

File

vendor/symfony/browser-kit/Tests/CookieTest.php, line 68

Class

CookieTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testFromStringWithCapitalization() {
  $this
    ->assertEquals('Foo=Bar; path=/', (string) Cookie::fromString('Foo=Bar'));
  $this
    ->assertEquals('foo=bar; expires=Fri, 31 Dec 2010 23:59:59 GMT; path=/', (string) Cookie::fromString('foo=bar; Expires=Fri, 31 Dec 2010 23:59:59 GMT'));
  $this
    ->assertEquals('foo=bar; domain=www.example.org; path=/; httponly', (string) Cookie::fromString('foo=bar; DOMAIN=www.example.org; HttpOnly'));
}