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 7.0 Error #33

Closed tankerkiller125 closed 6 years ago

tankerkiller125 commented 6 years ago

I'm getting the following error when using PHPUnit ~7.0 and the latest version of this package, is their something maybe I have wrong? Or is this a change in 7.0 that breaks this lib?

PHP Fatal error:  Declaration of Codedungeon\PHPUnitPrettyResultPrinter\_ResultPrinter::startTest(PHPUnit\Framework\Test $test) must be compatible with PHPUnit\TextUI\ResultPrinter::startTest(PHPUnit\Framework\Test $test): void in /home/vagrant/code/Work/Help-Desk/vendor/codedungeon/phpunit-result-printer/src/Printer.php on line 22

Fatal error: Declaration of Codedungeon\PHPUnitPrettyResultPrinter\_ResultPrinter::startTest(PHPUnit\Framework\Test $test) must be compatible with PHPUnit\TextUI\ResultPrinter::startTest(PHPUnit\Framework\Test $test): void in /home/vagrant/code/Work/Help-Desk/vendor/codedungeon/phpunit-result-printer/src/Printer.php on line 22
tankerkiller125 commented 6 years ago

Never mind, I have solved this issue, the version in the composer file was actually not allowing the latest version.