private function formatError($type, PHPUnit_Framework_Test $test, Exception $e) { if ($test != null) { $this->endTest($test, time()); } $this->inner .= $test->getName() . " " . $type . "\n"; if ($e !== null) { $this->inner .= $e->getMessage() . "\n"; $this->inner .= PHPUnit_Util_Filter::getFilteredStackTrace($e) . "\n"; } }
<div class="stacktrace"><table><?php foreach (PHPUnit_Util_Filter::getFilteredStackTrace($e, FALSE, FALSE) as $i => $t) { echo '<tr><td class="frameno">' . $i . '</td><td class="function">' . (isset($t['function']) ? htmlentities((isset($t['class']) ? $t['class'] . $t['type'] : '') . $t['function']) : '??') . '()</td><td class="location">' . (isset($t['file']) ? '<span title="' . htmlentities($t['file']) . '">' . htmlentities($t['file']) . '</span>:' . $t['line'] : '') . '</td></tr>'; } ?> </table></div>