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

--printer option did not allowed usage of other standard options #1674

Closed
llaville opened this issue Apr 10, 2015 · 1 comment
Closed

--printer option did not allowed usage of other standard options #1674

llaville opened this issue Apr 10, 2015 · 1 comment

Comments

@llaville
Copy link

When you write your own test output listener that extends the PHPUnit_Util_Printer class and implements the PHPUnit_Framework_TestListener interface, the --printer option does not allow to use other standard options such as --debug, --verbose, --colors.

See source code of PHPUnit 4.6.x
https://github.com/sebastianbergmann/phpunit/blob/4.6/src/TextUI/TestRunner.php#L218-L243

Only default printer class PHPUnit_TextUI_ResultPrinter is able to do it !

@llaville
Copy link
Author

llaville commented May 4, 2015

While my own version of PHPUnit printer class feature is now ready on my project (php-compatinfo, generictest branch), I've post an article about how to create a PHPUnit ResultPrinter around a PSR-3 logger concept.

http://php5.laurent-laville.org/compatinfo/blog/201505-PHPUnit-ResultPrinter.html

I explain in this article that we must extend the PHPUnit_TextUI_ResultPrinter if we want to benefit of standard options (verbose, debug, colors).

CC @sebastianbergmann I will let you close this issue at your disposal.

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

No branches or pull requests

2 participants