JDGrimes / wpppb

Bootstrap for integration testing WordPress plugins with PHPUnit
MIT License
13 stars 3 forks source link

Fatal Error when running phpunit version > 6 #29

Open sertlab opened 3 years ago

sertlab commented 3 years ago

I followed all the installation steps and when im trying to run the phpunit command i get this error

PHP Fatal error:  Cannot declare class PHPUnit_Util_Test, because the name is already in use in /home/user/vvv-local/www/wordpress-trunk/public_html/tests/phpunit/includes/phpunit6/compat.php on line 21

If i comment out this line of code in the core installation setup the uninstaller suite runs fine https://github.com/WordPress/wordpress-develop/blob/master/tests/phpunit/includes/bootstrap.php#L272

Unit tests suite throws this error

Class "SpeedTrapListener" does not exist