mikeerickson / phpunit-pretty-result-printer

PHPUnit Pretty Result Printer -- make your PHPUnit tests look pretty!
MIT License
1.2k stars 71 forks source link

PHPUnit\TextUI\ResultPrinter is internal #155

Closed KDederichs closed 4 years ago

KDederichs commented 4 years ago

Hey, I'm getting following deprecation notice using Phpunit 8.4.3:

The "PHPUnit\TextUI\ResultPrinter" class is considered internal This class is not covered by the backward compatibility promise for PHPUnit. It may change without further notice. You should not use it from "Codedungeon\PHPUnitPrettyResultPrinter\ResultPrinter80".

it would be great if we could get rid of that :)

mikeerickson commented 4 years ago

Hmm, not seeing that here. What version of PHP are you using?

KDederichs commented 4 years ago

I'm currently using PHP version 7.3.9 on my development machine.

ddebin commented 4 years ago

Same error here. Since PHPUnit 8.0, PHPUnit\TextUI\ResultPrinter is @internal. cf. https://github.com/sebastianbergmann/phpunit/issues/3236

https://github.com/sebastianbergmann/phpunit/blob/130104cf796a88dd1547dc5beb8bd555c2deb55e/src/TextUI/ResultPrinter.php#L29

mikeerickson commented 4 years ago

Fixed with 0.27.0 release -- https://github.com/mikeerickson/phpunit-pretty-result-printer/releases/tag/0.27.0