Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Ensure incomplete tests also have a backtrace

  • Loading branch information...
commit f57a763524c5304889596a2071a6bc027af29415 1 parent ce097a7
@halkyon halkyon authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 dev/CliTestReporter.php
View
9 dev/CliTestReporter.php
@@ -98,12 +98,9 @@ protected function writeTest($test) {
}
- if( $test['status'] == 2) {
- echo "\n" . SS_Cli::text($test['name'] . "\n" . $test['message'] . "\n", 'yellow', null);
- } else {
- echo "\n" . SS_Cli::text($test['name'] . "\n". $test['message'] . "\n", 'red', null);
- echo SS_Backtrace::get_rendered_backtrace($filteredTrace, true);
- }
+ $color = ($test['status'] == 2) ? 'yellow' : 'red';
+ echo "\n" . SS_Cli::text($test['name'] . "\n". $test['message'] . "\n", $color, null);
+ echo SS_Backtrace::get_rendered_backtrace($filteredTrace, true);
echo "--------------------\n";
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.