mikeerickson / phpunit-pretty-result-printer

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

Undefined method ResultPrinter71::formatWithColor() #143

Closed andreasschroth closed 5 years ago

andreasschroth commented 5 years ago

Not sure if this is related to PHPUnit 8 (didn't use this package before), but I'm getting this error:

PHP Fatal error:  Uncaught Error: Call to undefined method Codedungeon\PHPUnitPrettyResultPrinter\ResultPrinter71::formatWithColor() in /vendor/codedungeon/phpunit-result-printer/src/PrinterTrait.php:440
mikeerickson commented 5 years ago

Yes, it is related to PHPUnit 8. I will get this fixed as soon as I can (likely Thursday or Friday as I am out of town until thursday)

mikeerickson commented 5 years ago

Sorry for the troubles, I have a couple other issues to address related to PHPUnit 8 as well

andreasschroth commented 5 years ago

@mikeerickson Alright, thank you for the feedback! No worries, thanks for maintaining the project and I'll check it out once it's PHPUnit 8 compatible.

mikeerickson commented 5 years ago

@andreasschroth Hey there, scratched out some time today to have a look at this issue. I have tagged a new version (0.26.0).

https://packagist.org/packages/codedungeon/phpunit-result-printer#0.26.0

You can install as

composer require --dev codedungeon/phpunit-result-printer "^0.26"
andreasschroth commented 5 years ago

Thank you, it works! 👍