Skip to content

Instantly share code, notes, and snippets.

@TomK
Created April 18, 2016 09:37
Show Gist options
  • Save TomK/bdc25052f8cfabe3da6bc58c119cd2fd to your computer and use it in GitHub Desktop.
Save TomK/bdc25052f8cfabe3da6bc58c119cd2fd to your computer and use it in GitHub Desktop.
Run PHPUnit from the vendor folder
#!/bin/bash
if [ ! -f vendor/phpunit/phpunit/phpunit ]; then
echo 'No PHPUnit installed in vendor directory'
exit 1
fi
echo 'Executing `phpunit '$@'`...'
vendor/phpunit/phpunit/phpunit $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment