/** * @param PHPUnit2_Framework_TestFailure $defect * @access protected */ protected function printDefectTrace(PHPUnit2_Framework_TestFailure $defect) { $e = $defect->thrownException(); $message = method_exists($e, 'toString') ? $e->toString() : $e->getMessage(); $this->write($message . "\n"); $this->write(PHPUnit2_Util_Filter::getFilteredStacktrace($defect->thrownException())); }