Created
July 14, 2016 16:21
-
-
Save 4lun/de0c011c0f44d272f29381d0794f7180 to your computer and use it in GitHub Desktop.
Use phpunit from local vendor directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Local phpunit | |
phpunit() { | |
if [ -f "./vendor/bin/phpunit" ]; then | |
php ./vendor/bin/phpunit "$@"; | |
else | |
echo "Unable to locate phpunit in ./vendor/bin"; | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment