-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Make PHPUnit\TextUI\ResultPrinter an interface #4024
Comments
Let me start by saying that
is not emitted by PHPUnit. I assume that you are using a wrapper around PHPUnit, probably something like Symfony's PHPUnit bridge. With that out of the way, yes, the fact that I think the best way forward is to
This change will break backward compatibility, of course. |
PHPUnit\TextUI\ResultPrinter
class be considered public API?
@jaydiablo The logging code could use a good spring cleaning, however this will have to wait until the replacement for The current listener system is hard to work with with newer use cases like the execution reordering. If you want to get some feel for the hoops to jump through, have a look at #3417.
Yes, this is one of the functionalities that the bridge offers which needs to stay after the refactoring. |
This was changed in version 9.0 with the implemtation of sebastianbergmann/phpunit#4024.
Update the default printerClass to DefaultResultPrinter. This matches the change in #4024
* issue-21: Updating PHPUnit dependency to 9 * issue-21: Fixed phpunit configuration warning with phpunit --migrate-configuration. * issue-21: Switching from ResultPrinter to DefaultResultPrinter Check sebastianbergmann/phpunit#4024 * issue-21: Fixed failing test case - output no longer includes time and memory for this case. Co-authored-by: Jakub Homoly <[email protected]>
Summary
The
PHPUnit\TextUI\ResultPrinter
class is marked as internal (https://github.com/sebastianbergmann/phpunit/blob/master/src/TextUI/ResultPrinter.php#L29) which is causing notices to be emitted during test runs that have an external result printer configured:diablomedia/phpunit-pretty-printer#27
mikeerickson/phpunit-pretty-result-printer#155
indentno/phpunit-pretty-print#28
Is it possible to have this class be part of the public API as mentioned in #3236 ?
If not, what is the recommended way to implement result printers?
Thanks!
The text was updated successfully, but these errors were encountered: