File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Bundle/FrameworkBundle/Tests/Functional
Component/VarDumper/Tests/Dumper Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public function testParametersValuesAreFullyResolved(bool $debug)
141
141
$ this ->assertStringContainsString ('locale: en ' , $ tester ->getDisplay ());
142
142
$ this ->assertStringContainsString ('secret: test ' , $ tester ->getDisplay ());
143
143
$ this ->assertStringContainsString ('cookie_httponly: true ' , $ tester ->getDisplay ());
144
- $ this ->assertStringContainsString ('ide: ' .$ debug ? ($ _ENV ['SYMFONY_IDE ' ] ?? $ _SERVER ['SYMFONY_IDE ' ] ?? 'null ' ) : 'null ' , $ tester ->getDisplay ());
144
+ $ this ->assertStringContainsString ('ide: ' .( $ debug ? ($ _ENV ['SYMFONY_IDE ' ] ?? $ _SERVER ['SYMFONY_IDE ' ] ?? 'null ' ) : 'null ' ) , $ tester ->getDisplay ());
145
145
}
146
146
147
147
/**
Original file line number Diff line number Diff line change 19
19
20
20
/**
21
21
* @author Kévin Thérage <therage.kevin@gmail.com>
22
+ *
23
+ * @backupGlobals
22
24
*/
23
25
class ContextualizedDumperTest extends TestCase
24
26
{
25
27
public function testContextualizedCliDumper ()
26
28
{
29
+ $ _ENV ['SYMFONY_IDE ' ] = $ _SERVER ['SYMFONY_IDE ' ] = '' ;
27
30
$ wrappedDumper = new CliDumper ('php://output ' );
28
31
$ wrappedDumper ->setColors (true );
29
32
30
33
$ var = 'example ' ;
31
- $ href = \sprintf ('file://%s#L%s ' , __FILE__ , 37 );
34
+ $ href = \sprintf ('file://%s#L%s ' , __FILE__ , 40 );
32
35
$ dumper = new ContextualizedDumper ($ wrappedDumper , [new SourceContextProvider ()]);
33
36
$ cloner = new VarCloner ();
34
37
$ data = $ cloner ->cloneVar ($ var );
You can’t perform that action at this time.
0 commit comments