Skip to content

Commit a09b105

Browse files
Merge branch '3.4' into 4.3
* 3.4: [Yaml] fix test for PHP 7.4 Add polyfill for TestCase::createMock() Skip tests that fatal-error on PHP 7.4 because of missing parent classes
2 parents 9e2fead + 24a4fbc commit a09b105

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;
@@ -25,6 +26,10 @@ class ValidatorCacheWarmerTest extends TestCase
2526

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

0 commit comments

Comments
 (0)