Skip to content
Permalink
Browse files

Updating HtmlReporter so it doesn't make notice errors when printing …

…stack traces.
  • Loading branch information...
markstory committed Jul 21, 2010
1 parent 572f79b commit 766d7d50c60e23563ec6f7d507d2bd0bd0d39b1f
Showing with 7 additions and 1 deletion.
  1. +7 −1 cake/tests/lib/reporter/cake_html_reporter.php
@@ -320,7 +320,13 @@ protected function _getStackTrace(Exception $e) {
$trace = $e->getTrace();
$out = array();
foreach ($trace as $frame) {
$out[] = $frame['file'] . ' : ' . $frame['line'];
if (isset($frame['file']) && isset($frame['line'])) {
$out[] = $frame['file'] . ' : ' . $frame['line'];
} elseif (isset($frame['class']) && isset($frame['function'])) {
$out[] = $frame['class'] . '::' . $frame['function'];
} else {
$out[] = '[internal]';
}
}
return implode('<br />', $out);
}

0 comments on commit 766d7d5

Please sign in to comment.
You can’t perform that action at this time.