I\'ve recently installed laravel and have written some tests in /tests directory but when I use phpunit at cmd in the same folder that phpunit.xml
phpunit
phpunit.xml
Borrowing from @Chris' excellent answer: Even better, you can make vendor/phpunit/phpunit/phpunit an environment variable, say "phpunit" and whenever you want to run the test in any laravel project you just call php %phpunit%.
vendor/phpunit/phpunit/phpunit
php %phpunit%