mikeerickson / phpunit-pretty-result-printer

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

Not working with phpunit ~7.0 #34

Closed godbout closed 6 years ago

godbout commented 6 years ago

phpunit ~7.0 enforces return type:

public function startTest(Test $test): void

So the printer fails. I can do a PR but I don't think that should be merged into the master branch. Any advice?

mikeerickson commented 6 years ago

@godbout this issue was resolved in 0.5.6 (we are now on 0.6.0)

godbout commented 6 years ago

😨️ My bad! I seem to have missed something. Thanks @mikeerickson!

mikeerickson commented 6 years ago

@godbout no worries πŸ˜‰

godbout commented 6 years ago

Strangely my composer update doesn't seem to catch up. But the version range seems alright "codedungeon/phpunit-result-printer": "^0.4.4", it should get updated till 1.0.0, no? or am I too drunk already? πŸ˜‚οΈ

godbout commented 6 years ago

Ok, found out that I was misunderstanding how composer works for pre-1.0 versions. ^0.4.4 means it gets stuck there, while for versions over 1.0 it will go until 2.0. Changed to ~0.4 and it's updated now. Thanks! Still learning everyday.

mikeerickson commented 6 years ago

I was just about reply stating to use β€œ~0.6” but you already found that πŸ€“ if you aren’t learning something new every day, you are awake!