Skip to content

Commit c937180

Browse files
Merge branch '3.3' into 3.4
* 3.3: fix merge fix merge
2 parents 5f91f74 + 8e6accc commit c937180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/Tests/CookieTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function testToString()
165165
$this->assertEquals('foo=bar; expires=Fri, 20-May-2011 15:25:52 GMT; max-age='.($expire - time()).'; path=/; domain=.myfoodomain.com; secure; httponly', (string) $cookie, '->__toString() returns string representation of the cookie');
166166

167167
$cookie = new Cookie('foo', 'bar with white spaces', strtotime('Fri, 20-May-2011 15:25:52 GMT'), '/', '.myfoodomain.com', true);
168-
$this->assertEquals('foo=bar%20with%20white%20spaces; expires=Fri, 20-May-2011 15:25:52 GMT; path=/; domain=.myfoodomain.com; secure; httponly', (string) $cookie, '->__toString() encodes the value of the cookie according to RFC 3986 (white space = %20)');
168+
$this->assertEquals('foo=bar%20with%20white%20spaces; expires=Fri, 20-May-2011 15:25:52 GMT; max-age='.($expire - time()).'; path=/; domain=.myfoodomain.com; secure; httponly', (string) $cookie, '->__toString() encodes the value of the cookie according to RFC 3986 (white space = %20)');
169169

170170
$cookie = new Cookie('foo', null, 1, '/admin/', '.myfoodomain.com');
171171
$this->assertEquals('foo=deleted; expires='.gmdate('D, d-M-Y H:i:s T', $expire = time() - 31536001).'; max-age='.($expire - time()).'; path=/admin/; domain=.myfoodomain.com; httponly', (string) $cookie, '->__toString() returns string representation of a cleared cookie if value is NULL');
@@ -178,7 +178,7 @@ public function testRawCookie()
178178
{
179179
$cookie = new Cookie('foo', 'b a r', 0, '/', null, false, false);
180180
$this->assertFalse($cookie->isRaw());
181-
$this->assertEquals('foo=b+a+r; path=/', (string) $cookie);
181+
$this->assertEquals('foo=b%20a%20r; path=/', (string) $cookie);
182182

183183
$cookie = new Cookie('foo', 'b+a+r', 0, '/', null, false, false, true);
184184
$this->assertTrue($cookie->isRaw());

0 commit comments

Comments
 (0)