Add an alias for easier PHPUnit execution

Thu, 14 May 2020

.bash_profile
# Run PHPUnit by just typing: 'phpunit' instead of './vendor/bin/phpunit -c phpunit.xml'
# Add this line below into your '~/.bash_profile', then run 'source ~/.bash_profile'
#
#
alias phpunit='if [ -f "./vendor/bin/phpunit" ]; then ./vendor/bin/phpunit -c phpunit.xml; else echo "./vendor/bin/phpunit does not exist in this directory."; fi'