You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
When you write your own test output listener that extends the
PHPUnit_Util_Printer
class and implements thePHPUnit_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 !The text was updated successfully, but these errors were encountered: