According to upstream
PHPUnit 7 supports PHP 7.1 to 7.3
PHPUnit 8 supports PHP 7.2 to 7.4
As PHPUnit 8 breaks BC with previous versions (return type hinting in
setup method), lot of projects will stay way this new version.
Running lot of test suites using 7.4.0beta4, I encounter lot of
failures, lot ot them related to deprecated usage of
This is fixed in PHPUnit 7.1.15
I have backported the fix in
* php-phpunit-PHPUnit-MockObject-3.4.4-5 for PHPUnit 5
* php-phpunit-mock-objects5-5.0.10-3 for PHPUnit 6
All these are only built for Fedora 31/rawhide
I hope this will help.
P.S. I plan to import 7.4 in rawhide in September, during RC phase.