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
phpunit
Uncaught Error: Ca
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