Skip to content

Fatal Error when running phpunit version > 6 #29

@sertlab

Description

@sertlab

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions