You are here

protected function PHPUnit_TextUI_ResultPrinter::printDefectTrace in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php \PHPUnit_TextUI_ResultPrinter::printDefectTrace()

Parameters

PHPUnit_Framework_TestFailure $defect:

1 call to PHPUnit_TextUI_ResultPrinter::printDefectTrace()
PHPUnit_TextUI_ResultPrinter::printDefect in vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php

File

vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php, line 265

Class

PHPUnit_TextUI_ResultPrinter
Prints the result of a TextUI TestRunner run.

Code

protected function printDefectTrace(PHPUnit_Framework_TestFailure $defect) {
  $e = $defect
    ->thrownException();
  $this
    ->write((string) $e);
  while ($e = $e
    ->getPrevious()) {
    $this
      ->write("\nCaused by\n" . $e);
  }
}