Created
January 12, 2012 19:38
-
-
Save ecentinela/1602598 to your computer and use it in GitHub Desktop.
PHPUnit MAMP
This file contains hidden or 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
cd /Applications/MAMP/bin/php/php5.3.6/bin | |
# upgrade pear | |
sudo ./pear upgrade pear | |
# If you get the next error, move the pear.conf file, and rerun the pear upgrade | |
# Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050 | |
# ERROR: The default config file is not a valid config file or is corrupted. | |
mv /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf.old | |
sudo ./pear upgrade pear | |
# discover and install phpunit | |
./pear config-set auto_discover 1 | |
sudo ./pear install --alldeps pear.phpunit.de/PHPUnit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment