Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #719

  • Loading branch information...
commit 302b46519ad1c1de761d2bb846968201d6b9d61c 1 parent 0809359
@edorian edorian authored
Showing with 11 additions and 5 deletions.
  1. +1 −0  ChangeLog.md
  2. +10 −5 PHPUnit/TextUI/Command.php
View
1  ChangeLog.md
@@ -9,4 +9,5 @@ PHPUnit 3.8.0
* A test will now fail in strict mode when it uses the `@covers` annotation and code that is not expected to be covered is executed.
* Implemented #711: `coverage-text` now has an XML `showOnlySummary` option.
* Fixed: `phpt` test cases now use the correct php binary when executed through wrapper scripts.
+* Implemented #719: The `--stderr` flag now respects `--colors` and `--debug`.
* PHPUnit 3.8 is only supported on PHP 5.4.7 (or later).
View
15 PHPUnit/TextUI/Command.php
@@ -415,11 +415,7 @@ protected function handleArguments(array $argv)
break;
case '--stderr': {
- $this->arguments['printer'] = new PHPUnit_TextUI_ResultPrinter(
- 'php://stderr',
- isset($this->arguments['verbose']) ? $this->arguments['verbose'] : FALSE
- );
- }
+ $this->arguments['stderr'] = true; }
break;
case '--stop-on-error': {
@@ -512,6 +508,15 @@ protected function handleArguments(array $argv)
}
}
+ if (isset($this->arguments['stderr'])) {
+ $this->arguments['printer'] = new PHPUnit_TextUI_ResultPrinter(
+ 'php://stderr',
+ isset($this->arguments['verbose']) ?: FALSE,
+ isset($this->arguments['colors']) ?: FALSE,
+ isset($this->arguments['debug']) ?: FALSE
+ );
+ }
+
$this->handleCustomTestSuite();
if (!isset($this->arguments['test'])) {
Please sign in to comment.
Something went wrong with that request. Please try again.