Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Error when running phpunit version > 6 #29

Open
sertlab opened this issue Aug 20, 2021 · 0 comments
Open

Fatal Error when running phpunit version > 6 #29

sertlab opened this issue Aug 20, 2021 · 0 comments

Comments

@sertlab
Copy link

sertlab commented Aug 20, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant