File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Config \Tests \Resource ;
1313
1414use PHPUnit \Framework \TestCase ;
15- use PHPUnit \Framework \Warning ;
1615use Symfony \Component \Config \Resource \ClassExistenceResource ;
1716use Symfony \Component \Config \Tests \Fixtures \BadParent ;
1817use Symfony \Component \Config \Tests \Fixtures \Resource \ConditionalClass ;
@@ -76,23 +75,22 @@ public function testExistsKo()
7675 }
7776 }
7877
78+ /**
79+ * @runInSeparateProcess https://github.com/symfony/symfony/issues/32995
80+ */
7981 public function testBadParentWithTimestamp ()
8082 {
81- if (\PHP_VERSION_ID >= 70400 ) {
82- throw new Warning ('PHP 7.4 breaks this test, see https://bugs.php.net/78351. ' );
83- }
84-
8583 $ res = new ClassExistenceResource (BadParent::class, false );
8684 $ this ->assertTrue ($ res ->isFresh (time ()));
8785 }
8886
87+ /**
88+ * @runInSeparateProcess https://github.com/symfony/symfony/issues/32995
89+ */
8990 public function testBadParentWithNoTimestamp ()
9091 {
9192 $ this ->expectException ('ReflectionException ' );
9293 $ this ->expectExceptionMessage ('Class Symfony\Component\Config\Tests\Fixtures\MissingParent not found ' );
93- if (\PHP_VERSION_ID >= 70400 ) {
94- throw new Warning ('PHP 7.4 breaks this test, see https://bugs.php.net/78351. ' );
95- }
9694
9795 $ res = new ClassExistenceResource (BadParent::class, false );
9896 $ res ->isFresh (0 );
You can’t perform that action at this time.
0 commit comments