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)
141141 $ this ->assertStringContainsString ('locale: en ' , $ tester ->getDisplay ());
142142 $ this ->assertStringContainsString ('secret: test ' , $ tester ->getDisplay ());
143143 $ 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 ());
145145 }
146146
147147 /**
Original file line number Diff line number Diff line change 1919
2020/**
2121 * @author Kévin Thérage <therage.kevin@gmail.com>
22+ *
23+ * @backupGlobals
2224 */
2325class ContextualizedDumperTest extends TestCase
2426{
2527 public function testContextualizedCliDumper ()
2628 {
29+ $ _ENV ['SYMFONY_IDE ' ] = $ _SERVER ['SYMFONY_IDE ' ] = '' ;
2730 $ wrappedDumper = new CliDumper ('php://output ' );
2831 $ wrappedDumper ->setColors (true );
2932
3033 $ var = 'example ' ;
31- $ href = \sprintf ('file://%s#L%s ' , __FILE__ , 37 );
34+ $ href = \sprintf ('file://%s#L%s ' , __FILE__ , 40 );
3235 $ dumper = new ContextualizedDumper ($ wrappedDumper , [new SourceContextProvider ()]);
3336 $ cloner = new VarCloner ();
3437 $ data = $ cloner ->cloneVar ($ var );
You can’t perform that action at this time.
0 commit comments