File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
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 ;
15
16
use Symfony \Component \Config \Resource \ClassExistenceResource ;
16
17
use Symfony \Component \Config \Tests \Fixtures \BadParent ;
17
18
use Symfony \Component \Config \Tests \Fixtures \Resource \ConditionalClass ;
@@ -77,6 +78,10 @@ public function testExistsKo()
77
78
78
79
public function testBadParentWithTimestamp ()
79
80
{
81
+ if (\PHP_VERSION_ID >= 70400 ) {
82
+ throw new Warning ('PHP 7.4 breaks this test, see https://bugs.php.net/78351. ' );
83
+ }
84
+
80
85
$ res = new ClassExistenceResource (BadParent::class, false );
81
86
$ this ->assertTrue ($ res ->isFresh (time ()));
82
87
}
@@ -87,6 +92,10 @@ public function testBadParentWithTimestamp()
87
92
*/
88
93
public function testBadParentWithNoTimestamp ()
89
94
{
95
+ if (\PHP_VERSION_ID >= 70400 ) {
96
+ throw new Warning ('PHP 7.4 breaks this test, see https://bugs.php.net/78351. ' );
97
+ }
98
+
90
99
$ res = new ClassExistenceResource (BadParent::class, false );
91
100
$ res ->isFresh (0 );
92
101
}
You can’t perform that action at this time.
0 commit comments