diff --git a/cake/tests/lib/reporter/cake_html_reporter.php b/cake/tests/lib/reporter/cake_html_reporter.php index e8c51e69e..4252c4ccc 100755 --- a/cake/tests/lib/reporter/cake_html_reporter.php +++ b/cake/tests/lib/reporter/cake_html_reporter.php @@ -320,7 +320,13 @@ class CakeHtmlReporter extends CakeBaseReporter { $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('
', $out); }