Quellcode durchsuchen

[BrowserKit] Added additional unit tests for capital letters in cookies

Chris Smith vor 13 Jahren
Ursprung
Commit
d8dfca21f2
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      tests/Symfony/Tests/Component/BrowserKit/CookieTest.php

+ 2 - 0
tests/Symfony/Tests/Component/BrowserKit/CookieTest.php

@@ -63,7 +63,9 @@ class CookieTest extends \PHPUnit_Framework_TestCase
 
     public function testFromStringWithCapitalization()
     {
+        $this->assertEquals('Foo=Bar', (string) Cookie::fromString('Foo=Bar'));
         $this->assertEquals('foo=bar; expires=Fri, 31 Dec 2010 23:59:59 GMT', (string) Cookie::fromString('foo=bar; Expires=Fri, 31 Dec 2010 23:59:59 GMT'));
+        $this->assertEquals('foo=bar; domain=www.example.org; httponly', (string) Cookie::fromString('foo=bar; DOMAIN=www.example.org; HttpOnly'));
     }
 
     public function testFromStringWithUrl()