Skip to content
Permalink
Browse files

Fixing fatal errors that would arise if the Exception did not have a …

…parent class.
  • Loading branch information...
markstory committed Jun 22, 2010
1 parent 7ac76f3 commit 22baf7fd450149d5c908dc9b1e9ae8a60ce1045f
Showing with 5 additions and 1 deletion.
  1. +5 −1 cake/tests/lib/reporter/cake_html_reporter.php
@@ -265,7 +265,11 @@ public function paintFail($message) {
$context = $message->getTrace();
$realContext = $context[3];
$class = new ReflectionClass($realContext['class']);
$deeper = $class->getParentClass()->getName() === 'PHPUnit_Framework_TestCase';
$deeper = false;
if ($class->getParentClass()) {
$deeper = $class->getParentClass()->getName() === 'PHPUnit_Framework_TestCase';
}
$deeper = $deeper || !$class->isSubclassOf('PHPUnit_Framework_TestCase');
if ($deeper) {
$realContext = $context[4];

0 comments on commit 22baf7f

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