MINOR Ensure incomplete tests also have a backtrace

This commit is contained in:
Sean Harvey 2012-04-15 00:26:17 +12:00
parent ce097a7b54
commit f57a763524

View File

@ -98,12 +98,9 @@ class CliTestReporter extends SapphireTestReporter {
} }
if( $test['status'] == 2) { $color = ($test['status'] == 2) ? 'yellow' : 'red';
echo "\n" . SS_Cli::text($test['name'] . "\n" . $test['message'] . "\n", 'yellow', null); echo "\n" . SS_Cli::text($test['name'] . "\n". $test['message'] . "\n", $color, null);
} else { echo SS_Backtrace::get_rendered_backtrace($filteredTrace, true);
echo "\n" . SS_Cli::text($test['name'] . "\n". $test['message'] . "\n", 'red', null);
echo SS_Backtrace::get_rendered_backtrace($filteredTrace, true);
}
echo "--------------------\n"; echo "--------------------\n";
} }
} }