Skip to content

Instantly share code, notes, and snippets.

@ecentinela
Created January 12, 2012 19:38
Show Gist options
  • Save ecentinela/1602598 to your computer and use it in GitHub Desktop.
Save ecentinela/1602598 to your computer and use it in GitHub Desktop.
PHPUnit MAMP
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