Permalink
Browse files

Coverage text defaults to stdout output for ease of use

  • Loading branch information...
1 parent 0df8fa1 commit f42ab1ea2f9b41a7d6f13dc5ee88c080977103a4 @edorian edorian committed Oct 11, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 PHPUnit/TextUI/Command.php
@@ -82,7 +82,7 @@ class PHPUnit_TextUI_Command
'coverage-html=' => NULL,
'coverage-clover=' => NULL,
'coverage-php=' => NULL,
- 'coverage-text=' => NULL,
+ 'coverage-text==' => NULL,
'debug' => NULL,
'exclude-group=' => NULL,
'filter=' => NULL,
@@ -317,6 +317,9 @@ protected function handleArguments(array $argv)
break;
case '--coverage-text': {
+ if($option[1] === NULL) {
+ $option[1] = 'php://stdout';
+ }
$this->arguments['coverageText'] = $option[1];
$this->arguments['coverageTextShowUncoveredFiles'] = FALSE;
}

0 comments on commit f42ab1e

Please sign in to comment.