@@ -155,14 +155,14 @@ public function testExpirationTime(): void
155155 // expires => 0
156156 $cookie = new Cookie('test', 'value');
157157 $this->assertSame(0, $cookie->getExpiresTimestamp());
158- $ this ->assertSame ('Thu, 01- Jan- 1970 00:00:00 GMT ' , $ cookie ->getExpiresString ());
158+ $this->assertSame('Thu, 01 Jan 1970 00:00:00 GMT', $cookie->getExpiresString());
159159 $this->assertTrue($cookie->isExpired());
160160 $this->assertSame(0, $cookie->getMaxAge());
161161
162162 $date = new DateTimeImmutable('2021-01-10 00:00:00 GMT', new DateTimeZone('UTC'));
163163 $cookie = new Cookie('test', 'value', ['expires' => $date]);
164164 $this->assertSame((int) $date->format('U'), $cookie->getExpiresTimestamp());
165- $ this ->assertSame ('Sun, 10- Jan- 2021 00:00:00 GMT ' , $ cookie ->getExpiresString ());
165+ $this->assertSame('Sun, 10 Jan 2021 00:00:00 GMT', $cookie->getExpiresString());
166166 }
167167
168168 /**
@@ -272,15 +272,15 @@ public function testStringCastingOfCookies(): void
272272 $a->toHeaderString(),
273273 );
274274 $this->assertSame(
275- "cookie=monster; Expires=Sun, 14- Feb- 2021 00:00:00 GMT; Max-Age= {$ max }; Path=/web; Domain=localhost; HttpOnly; SameSite=Lax " ,
275+ "cookie=monster; Expires=Sun, 14 Feb 2021 00:00:00 GMT; Max-Age={$max}; Path=/web; Domain=localhost; HttpOnly; SameSite=Lax",
276276 (string) $b,
277277 );
278278 $this->assertSame(
279279 'cookie=lover; Path=/; Secure; SameSite=Strict',
280280 (string) $c,
281281 );
282282 $this->assertSame(
283- 'cookie=deleted; Expires=Thu, 01- Jan- 1970 00:00:00 GMT; Max-Age=0; Path=/; HttpOnly; SameSite=Lax ' ,
283+ 'cookie=deleted; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Path=/; HttpOnly; SameSite=Lax',
284284 (string) $d,
285285 );
286286
0 commit comments