Skip to content

Commit 2264e38

Browse files
committed
[HttpFoundation] Skip the cookie_max_age fixture on PHP 8.
1 parent d01f322 commit 2264e38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/ResponseFunctionalTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public static function tearDownAfterClass()
4545
*/
4646
public function testCookie($fixture)
4747
{
48+
if (\PHP_VERSION_ID >= 80000 && 'cookie_max_age' === $fixture) {
49+
$this->markTestSkipped('This fixture produces a fatal error on PHP 8.');
50+
}
51+
4852
$result = file_get_contents(sprintf('http://localhost:8054/%s.php', $fixture));
4953
$this->assertStringMatchesFormatFile(__DIR__.sprintf('/Fixtures/response-functional/%s.expected', $fixture), $result);
5054
}

0 commit comments

Comments
 (0)