File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,17 @@ public function testWhenNoFileLinkFormatAndNoRequest()
27
27
28
28
public function testAfterUnserialize ()
29
29
{
30
+ $ ide = $ _ENV ['SYMFONY_IDE ' ] ?? $ _SERVER ['SYMFONY_IDE ' ] ?? null ;
31
+ $ _ENV ['SYMFONY_IDE ' ] = $ _SERVER ['SYMFONY_IDE ' ] = null ;
30
32
$ sut = unserialize (serialize (new FileLinkFormatter ()));
31
33
32
34
$ this ->assertFalse ($ sut ->format ('/kernel/root/src/my/very/best/file.php ' , 3 ));
35
+
36
+ if (null === $ ide ) {
37
+ unset($ _ENV ['SYMFONY_IDE ' ], $ _SERVER ['SYMFONY_IDE ' ]);
38
+ } else {
39
+ $ _ENV ['SYMFONY_IDE ' ] = $ _SERVER ['SYMFONY_IDE ' ] = $ ide ;
40
+ }
33
41
}
34
42
35
43
public function testWhenFileLinkFormatAndNoRequest ()
Original file line number Diff line number Diff line change 10
10
>
11
11
<php >
12
12
<ini name =" error_reporting" value =" -1" />
13
- <env name =" SYMFONY_IDE" value =" " force =" true" />
14
13
</php >
15
14
16
15
<testsuites >
You can’t perform that action at this time.
0 commit comments