We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d57b4 commit ce545d2Copy full SHA for ce545d2
PHPUnit/TextUI/ResultPrinter.php
@@ -275,16 +275,17 @@ protected function printDefectTrace(PHPUnit_Framework_TestFailure $defect)
275
)
276
);
277
278
- $e = $defect->thrownException()->getPrevious();
+ $e = $defect->thrownException()->getPrevious();
279
+
280
while ($e) {
- $this->write(
281
- "\nCaused by\n" .
282
- PHPUnit_Framework_TestFailure::exceptionToString($e). "\n" .
283
- PHPUnit_Util_Filter::getFilteredStacktrace($e)
284
- );
285
- $e = $e->getPrevious();
286
- }
287
-
+ $this->write(
+ "\nCaused by\n" .
+ PHPUnit_Framework_TestFailure::exceptionToString($e). "\n" .
+ PHPUnit_Util_Filter::getFilteredStacktrace($e)
+ );
+ $e = $e->getPrevious();
288
+ }
289
}
290
291
/**
0 commit comments