Permalink
Browse files

Adding exception to the expected types.

  • Loading branch information...
1 parent 65e0e81 commit b4e009955d8c258bca5b17a6e6631c56ae87c022 @davidpersson davidpersson committed May 19, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 console/command/Test.php
View
7 console/command/Test.php
@@ -86,6 +86,9 @@ protected function _init() {
case 'F':
case 'fail':
return "{:red}{$result}{:end}";
+ case 'E':
+ case 'exception':
+ return "{:purple}{$result}{:end}";
case 'S':
case 'skip':
return "{:cyan}{$result}{:end}";
@@ -98,7 +101,7 @@ protected function _init() {
$reporter = function($result) use ($command, $colorize) {
$command->out(sprintf(
'[%s] %s::%s()',
- $colorize(sprintf('%7s', $result['result'])),
+ $colorize(sprintf('%9s', $result['result'])),
$result['class'],
$result['method']
));
@@ -108,7 +111,7 @@ protected function _init() {
$columns = 60;
$reporter = function($result) use ($command, &$i, $columns, $colorize) {
- $shorten = array('fail', 'skip');
+ $shorten = array('fail', 'skip', 'exception');
if ($result['result'] == 'pass') {
$symbol = '.';

0 comments on commit b4e0099

Please sign in to comment.