Loading core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -572,11 +572,11 @@ public function testDeprecationHeaders() { * Tests the dump() function provided by the var-dumper Symfony component. */ public function testVarDump() { // Append the stream capturer to the STDOUT stream, so that we can test the // Append the stream capturer to the STDERR stream, so that we can test the // dump() output and also prevent it from actually outputting in this // particular test. stream_filter_register("capture", StreamCapturer::class); stream_filter_append(STDOUT, "capture"); stream_filter_append(STDERR, "capture"); // Dump some variables to check that dump() in test code produces output // on the command line that is running the test. Loading core/tests/Drupal/KernelTests/KernelTestBaseTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -341,11 +341,11 @@ public function testProfileModules() { * Tests the dump() function provided by the var-dumper Symfony component. */ public function testVarDump() { // Append the stream capturer to the STDOUT stream, so that we can test the // Append the stream capturer to the STDERR stream, so that we can test the // dump() output and also prevent it from actually outputting in this // particular test. stream_filter_register("capture", StreamCapturer::class); stream_filter_append(STDOUT, "capture"); stream_filter_append(STDERR, "capture"); // Dump some variables. $this->enableModules(['system', 'user']); Loading core/tests/Drupal/TestTools/TestVarDumper.php +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class TestVarDumper { public static function cliHandler($var) { $cloner = new VarCloner(); $dumper = new CliDumper(); fwrite(STDOUT, "\n"); fwrite(STDERR, "\n"); $dumper->setColors(TRUE); $dumper->dump( $cloner->cloneVar($var), Loading @@ -30,7 +30,7 @@ function ($line, $depth, $indent_pad) { // A negative depth means "end of dump". if ($depth >= 0) { // Adds a two spaces indentation to the line. fwrite(STDOUT, str_repeat($indent_pad, $depth) . $line . "\n"); fwrite(STDERR, str_repeat($indent_pad, $depth) . $line . "\n"); } } ); Loading core/tests/Drupal/Tests/UnitTestCaseTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -17,11 +17,11 @@ class UnitTestCaseTest extends UnitTestCase { * Tests the dump() function in a test run in the same process. */ public function testVarDumpSameProcess() { // Append the stream capturer to the STDOUT stream, so that we can test the // Append the stream capturer to the STDERR stream, so that we can test the // dump() output and also prevent it from actually outputting in this // particular test. stream_filter_register("capture", StreamCapturer::class); stream_filter_append(STDOUT, "capture"); stream_filter_append(STDERR, "capture"); // Dump some variables. $object = (object) [ Loading @@ -40,11 +40,11 @@ public function testVarDumpSameProcess() { * @runInSeparateProcess */ public function testVarDumpSeparateProcess() { // Append the stream capturer to the STDOUT stream, so that we can test the // Append the stream capturer to the STDERR stream, so that we can test the // dump() output and also prevent it from actually outputting in this // particular test. stream_filter_register("capture", StreamCapturer::class); stream_filter_append(STDOUT, "capture"); stream_filter_append(STDERR, "capture"); // Dump some variables. $object = (object) [ Loading Loading
core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -572,11 +572,11 @@ public function testDeprecationHeaders() { * Tests the dump() function provided by the var-dumper Symfony component. */ public function testVarDump() { // Append the stream capturer to the STDOUT stream, so that we can test the // Append the stream capturer to the STDERR stream, so that we can test the // dump() output and also prevent it from actually outputting in this // particular test. stream_filter_register("capture", StreamCapturer::class); stream_filter_append(STDOUT, "capture"); stream_filter_append(STDERR, "capture"); // Dump some variables to check that dump() in test code produces output // on the command line that is running the test. Loading
core/tests/Drupal/KernelTests/KernelTestBaseTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -341,11 +341,11 @@ public function testProfileModules() { * Tests the dump() function provided by the var-dumper Symfony component. */ public function testVarDump() { // Append the stream capturer to the STDOUT stream, so that we can test the // Append the stream capturer to the STDERR stream, so that we can test the // dump() output and also prevent it from actually outputting in this // particular test. stream_filter_register("capture", StreamCapturer::class); stream_filter_append(STDOUT, "capture"); stream_filter_append(STDERR, "capture"); // Dump some variables. $this->enableModules(['system', 'user']); Loading
core/tests/Drupal/TestTools/TestVarDumper.php +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class TestVarDumper { public static function cliHandler($var) { $cloner = new VarCloner(); $dumper = new CliDumper(); fwrite(STDOUT, "\n"); fwrite(STDERR, "\n"); $dumper->setColors(TRUE); $dumper->dump( $cloner->cloneVar($var), Loading @@ -30,7 +30,7 @@ function ($line, $depth, $indent_pad) { // A negative depth means "end of dump". if ($depth >= 0) { // Adds a two spaces indentation to the line. fwrite(STDOUT, str_repeat($indent_pad, $depth) . $line . "\n"); fwrite(STDERR, str_repeat($indent_pad, $depth) . $line . "\n"); } } ); Loading
core/tests/Drupal/Tests/UnitTestCaseTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -17,11 +17,11 @@ class UnitTestCaseTest extends UnitTestCase { * Tests the dump() function in a test run in the same process. */ public function testVarDumpSameProcess() { // Append the stream capturer to the STDOUT stream, so that we can test the // Append the stream capturer to the STDERR stream, so that we can test the // dump() output and also prevent it from actually outputting in this // particular test. stream_filter_register("capture", StreamCapturer::class); stream_filter_append(STDOUT, "capture"); stream_filter_append(STDERR, "capture"); // Dump some variables. $object = (object) [ Loading @@ -40,11 +40,11 @@ public function testVarDumpSameProcess() { * @runInSeparateProcess */ public function testVarDumpSeparateProcess() { // Append the stream capturer to the STDOUT stream, so that we can test the // Append the stream capturer to the STDERR stream, so that we can test the // dump() output and also prevent it from actually outputting in this // particular test. stream_filter_register("capture", StreamCapturer::class); stream_filter_append(STDOUT, "capture"); stream_filter_append(STDERR, "capture"); // Dump some variables. $object = (object) [ Loading