PHPunit Uncaught Error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration()

后端 未结 7 1617
暖寄归人
暖寄归人 2020-12-09 02:57

i don\'t know if it\'s related to Laravel 5.4. when i run phpunit command after installing laravel 5.4 without making any changes i get Uncaught Error: Ca

7条回答
  •  离开以前
    2020-12-09 03:14

    I have same issue ans solved with this step :

    Check diff version

    $ phpunit --version
    PHPUnit 6.5.5 by Sebastian Bergmann and contributors.
    
    $ ./vendor/bin/phpunit --version
    PHPUnit 8.3.5 by Sebastian Bergmann and contributors.
    

    Update global phpunit:

    if versions not equal update phpunit with

     composer global require phpunit/phpunit:^8
    

    check again versions

    $ phpunit --version
    PHPUnit 8.3.5 by Sebastian Bergmann and contributors.
    
    $ ./vendor/bin/phpunit --version
    PHPUnit 8.3.5 by Sebastian Bergmann and contributors.
    

提交回复
热议问题