Skip to content

Instantly share code, notes, and snippets.

@jerridan
Created August 1, 2014 21:40
Show Gist options
  • Save jerridan/11dcf31f2e54c7c28724 to your computer and use it in GitHub Desktop.
Save jerridan/11dcf31f2e54c7c28724 to your computer and use it in GitHub Desktop.
Install PHPUnit on a vagrant machine
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "$(tput setaf 1)This script must be run as root$(tput sgr 0)" 1>&2
exit 1
fi
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
mv phpunit.phar /usr/bin/phpunit
phpunit --version
echo "PHPUnit installed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment