Skip to content

Commit 24a4fbc

Browse files
Skip tests that fatal-error on PHP 7.4 because of missing parent classes
1 parent f2d5865 commit 24a4fbc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/CacheWarmer/ValidatorCacheWarmerTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\CacheWarmer;
1313

14+
use PHPUnit\Framework\Warning;
1415
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1516
use Symfony\Bundle\FrameworkBundle\CacheWarmer\ValidatorCacheWarmer;
1617
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
@@ -26,6 +27,10 @@ class ValidatorCacheWarmerTest extends TestCase
2627

2728
public function testWarmUp()
2829
{
30+
if (\PHP_VERSION_ID >= 70400) {
31+
throw new Warning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
32+
}
33+
2934
$validatorBuilder = new ValidatorBuilder();
3035
$validatorBuilder->addXmlMapping(__DIR__.'/../Fixtures/Validation/Resources/person.xml');
3136
$validatorBuilder->addYamlMapping(__DIR__.'/../Fixtures/Validation/Resources/author.yml');

0 commit comments

Comments
 (0)