[HttpFoundation] Skip the cookie_max_age fixture on PHP 8.
This commit is contained in:
parent
4b3015ff5f
commit
d6d9b2927d
@ -45,6 +45,10 @@ class ResponseFunctionalTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testCookie($fixture)
|
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));
|
$result = file_get_contents(sprintf('http://localhost:8054/%s.php', $fixture));
|
||||||
$this->assertStringMatchesFormatFile(__DIR__.sprintf('/Fixtures/response-functional/%s.expected', $fixture), $result);
|
$this->assertStringMatchesFormatFile(__DIR__.sprintf('/Fixtures/response-functional/%s.expected', $fixture), $result);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user