diff --git a/src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php b/src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php index c908b1b993..7aad1cac2c 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php @@ -45,6 +45,10 @@ class ResponseFunctionalTest extends TestCase */ public function testCookie($fixture) { + if (\PHP_VERSION_ID >= 80000 && 'cookie_max_age' === $fixture) { + $this->markTestSkipped('This fixture produces a fatal error on PHP 8.'); + } + $result = file_get_contents(sprintf('http://localhost:8054/%s.php', $fixture)); $this->assertStringMatchesFormatFile(__DIR__.sprintf('/Fixtures/response-functional/%s.expected', $fixture), $result); }