Skip to content

Commit

Permalink
[HttpFoundation] Fix tests on PHP 8.2 (bis)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Aug 17, 2022
1 parent 32589ae commit b2f2e3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Fixtures/response-functional/cookie_max_age.expected
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Array
[0] => Content-Type: text/plain; charset=utf-8
[1] => Cache-Control: no-cache, private
[2] => Date: Sat, 12 Nov 1955 20:04:00 GMT
[3] => Set-Cookie: foo=bar; expires=Sat, 01-Jan-10000 02:46:40 GMT; Max-Age=%d; path=/
[3] => Set-Cookie: foo=bar; expires=Sat, 01 Jan 10000 02:46:40 GMT; Max-Age=%d; path=/
)
shutdown
1 change: 1 addition & 0 deletions Tests/ResponseFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function testCookie($fixture)
}

$result = file_get_contents(sprintf('http://localhost:8054/%s.php', $fixture));
$result = preg_replace_callback('/expires=[^;]++/', function ($m) { return str_replace('-', ' ', $m[0]); }, $result);
$this->assertStringMatchesFormatFile(__DIR__.sprintf('/Fixtures/response-functional/%s.expected', $fixture), $result);
}

Expand Down

0 comments on commit b2f2e3c

Please sign in to comment.