Skip to content

Commit d8150fa

Browse files
jderussenicolas-grekas
authored andcommitted
Replace warning by isolated test
1 parent f83f0db commit d8150fa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Tests/CacheWarmer/ValidatorCacheWarmerTest.php

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

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

14-
use PHPUnit\Framework\Warning;
1514
use Symfony\Bundle\FrameworkBundle\CacheWarmer\ValidatorCacheWarmer;
1615
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
1716
use Symfony\Component\Cache\Adapter\ArrayAdapter;
@@ -22,12 +21,11 @@
2221

2322
class ValidatorCacheWarmerTest extends TestCase
2423
{
24+
/**
25+
* @runInSeparateProcess https://github.com/symfony/symfony/issues/32995
26+
*/
2527
public function testWarmUp()
2628
{
27-
if (\PHP_VERSION_ID >= 70400) {
28-
throw new Warning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
29-
}
30-
3129
$validatorBuilder = new ValidatorBuilder();
3230
$validatorBuilder->addXmlMapping(__DIR__.'/../Fixtures/Validation/Resources/person.xml');
3331
$validatorBuilder->addYamlMapping(__DIR__.'/../Fixtures/Validation/Resources/author.yml');

0 commit comments

Comments
 (0)