testing
Estimated reading time: 1 minutetesting
configure xml file
# bash cli
./vendor/bin/phpunit --configuration /path/to/laravel_project/phpunit.xml
create command with cli
php artisan make:test AppTest --unit
run
# all file
./vendor/bin/phpunit
# specific file
./vendor/bin/phpunit tests/Unit/AppTest.php
optional
- global install
composer global require phpunit/phpunit