PHPunit Uncaught Error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration()
Seems like your version installed globally does not meet minimal required version. Try to run
phpunit --version
I bet you will get some like 5.1
. The php artisan dusk
command uses different version which is located in vendor/bin/phpunit
. So, you are also able to use this version instead. Just type:
vendor/bin/phpunit
instead of phpunit
. You have to upgrade your global phpunit version if it works.
Had the same problem at Laravel 5.4. This worked for me.
Step 1: update your composer
composer update
Step 2: run the phpunit
vendor/bin/phpunit
You can run a specific test by specifying the file
vendor/bin/phpunit tests/Feature/ExampleTest.php
In my case the following command worked in windows environment, with \
in place of /
:
vendor\bin\phpunit