Created
June 16, 2012 17:50
-
-
Save sn/2942076 to your computer and use it in GitHub Desktop.
Installing PHPUnit with MAMP PRO on OSX
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
1) Open up the terminal | |
2) Don't use version of PEAR that came with OS-X, use the one that came with MAMP (/Applications/MAMP/bin/php/php5.3.6/bin/pear) | |
3) Upgrade PEAR: | |
/Applications/MAMP/bin/php/php5.3.6/bin/pear channel-update pear.php.net | |
/Applications/MAMP/bin/php/php5.3.6/bin/pear channel-update upgrade pear | |
If you receive the following error: `Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050`, | |
delete the PEAR config file found here: /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf | |
4) Register the channels: | |
/Applications/MAMP/bin/php/php5.3.6/bin/pear channel-discover pear.phpunit.de | |
/Applications/MAMP/bin/php/php5.3.6/bin/pear channel-discover pear.symfony-project.com | |
5) Install: | |
/Applications/MAMP/bin/php/php5.3.6/bin/pear install phpunit/PHPUnit | |
6) Move it into your path: | |
mv /Applications/MAMP/bin/php/php5.3.6/bin/phpunit /usr/local/bin/phpunit | |
7) Check that you have the correct version: | |
phpunit -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment