[HttpFoundation] Skip the cookie_max_age fixture on PHP 8.

This commit is contained in:
Alexander M. Turek 2020-09-12 22:41:00 +02:00
parent 4b3015ff5f
commit d6d9b2927d
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}