Writing php unit testing with phpunit
Run composer require to install all missing dependencies
Then, to test: run below line in terminal specifying the file-path or directory name:
./vendor/bin/phpunit
Example:
./vendor/bin/phpunit tests ./vendor/bin/phpunit tests/UserTest.php
info at phpclasses dot org