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 12
12
namespace Symfony \Component \Config \Tests \Resource ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
- use PHPUnit \Framework \Warning ;
16
15
use Symfony \Component \Config \Resource \ClassExistenceResource ;
17
16
use Symfony \Component \Config \Tests \Fixtures \BadParent ;
18
17
use Symfony \Component \Config \Tests \Fixtures \Resource \ConditionalClass ;
@@ -76,23 +75,22 @@ public function testExistsKo()
76
75
}
77
76
}
78
77
78
+ /**
79
+ * @runInSeparateProcess https://github.com/symfony/symfony/issues/32995
80
+ */
79
81
public function testBadParentWithTimestamp ()
80
82
{
81
- if (\PHP_VERSION_ID >= 70400 ) {
82
- throw new Warning ('PHP 7.4 breaks this test, see https://bugs.php.net/78351. ' );
83
- }
84
-
85
83
$ res = new ClassExistenceResource (BadParent::class, false );
86
84
$ this ->assertTrue ($ res ->isFresh (time ()));
87
85
}
88
86
87
+ /**
88
+ * @runInSeparateProcess https://github.com/symfony/symfony/issues/32995
89
+ */
89
90
public function testBadParentWithNoTimestamp ()
90
91
{
91
92
$ this ->expectException ('ReflectionException ' );
92
93
$ 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
- }
96
94
97
95
$ res = new ClassExistenceResource (BadParent::class, false );
98
96
$ res ->isFresh (0 );
You can’t perform that action at this time.
0 commit comments