ϑ August 22, 2011

Installing PHPUnit 3 with MAMP 2 in Mac OS X Snow Leopard

I struggled with this at first, a bit more than I could ever imagine. I'm all set now and very glad. Maybe it's just me but it is so sad, oh so very sad, to have to deal with CLI in the 21st century's technology level.

Here's the order of commands executed in Terminal.app to get this done.

@alias mpear="/Applications/MAMP/bin/php/php5.3.6/bin/pear"
mpear config-set php_dir /Applications/MAMP/bin/php/php5.3.6/lib/php/
mpear channel-discover pear.phpunit.de
mpear channel-discover components.ez.no
mpear channel-discover pear.symfony-project.com
mpear channel-update pear.php.net
mpear upgrade pear
mpear install phpunit/PHPUnit
@