indentno/phpunit-pretty-print

PhpUnit 8.3 deprecation notice

Closed this issue · 3 comments

I am receiving this deprecation notice when running on PhpUnit 8.3.5

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 "Sempro\PHPUnitPrettyPrinter\PrettyPrinter"

It sounds like you should replace the class with phpunit's - in other words, sounds like this package is now internal in their own implementation. I could be wrong.

Apparently PHPUnit\TextUI\ResultPrinter is @internal in version 8. I'm not experiencing this when using PHPUnit 7. Not sure how to fix this yet.

Seems like other printers have this too.
mikeerickson/phpunit-pretty-result-printer#155

It looks like they have replaced this class with a interface in phpunit 9.