Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem of --stderr with --tap or --testdox options #1537

Merged
merged 1 commit into from
Dec 22, 2014
Merged

Fix problem of --stderr with --tap or --testdox options #1537

merged 1 commit into from
Dec 22, 2014

Conversation

henriquemoody
Copy link
Contributor

I don't think this pull request is the best solution to fix #1455, but I'm sure it solves the problem.

Actually, the main problem, IMO, is because there is no centralized point to create printers instances. PHPUnit_TextUI_Command creates and configures printers objects but PHPUnit_TextUI_TestRunner too.

I will be glad to create a Factory for these printers but it requires a quite of change.

PS.: I can not test this, because seems that PHPT does not recognize STDERR.

isset($this->arguments['verbose']) ? $this->arguments['verbose'] : false
);
if (isset($phpunit['stderr']) && ! isset($this->arguments['stderr'])) {
$this->arguments['stderr'] = $phpunit['stderr'];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we merge the arguments with the settings from the configuration file? Like:

$this->arguments = $this->arguments + $phpunit;

@henriquemoody henriquemoody changed the title Use --stderr with --tap and/or --testdox Fix problem of --stderr with --tap or --testdox options Dec 19, 2014
sebastianbergmann added a commit that referenced this pull request Dec 22, 2014
Fix problem of `--stderr` with `--tap` or `--testdox` options
@sebastianbergmann sebastianbergmann merged commit 2a1f874 into sebastianbergmann:master Dec 22, 2014
@henriquemoody henriquemoody deleted the stderr branch December 22, 2014 16:20
@henriquemoody
Copy link
Contributor Author

I think I made a mistake here. Since it was a bug fix I had to sent it against 4.4 instead of master.
Can someone cherry-pick ea1fea3 to 4.4 and 4.5?

BTW, this also fix #719 which should be reopened.

@whatthejeff
Copy link
Contributor

Alright, cherry-picked into 4.4 and 4.5. Thanks for the heads up!

@sebastianbergmann sebastianbergmann added this to the PHPUnit 4.6 milestone Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--testdox does not work with stderr="true" but with --stderr
3 participants