MAMPにPHPUnitをインストールする
MAMPのバージョン2.0.3
cd /Applications/MAMP/bin/php/php5.3.6/bin sudo ./pear upgrade pear ./pear channel-discover pear.phpunit.de ./pear channel-discover components.ez.no ./pear channel-discover pear.symfony-project.com sudo ./pear install phpunit/PHPUnit
下記エラーが出る場合は/Applications/MAMP/bin/php/php5.3.6/conf/pear.confを削除する
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.
正常にインストールができれば/Applications/MAMP/bin/php/php5.3.6/binにphpunitができる
動作確認
/Applications/MAMP/bin/php/php5.3.6/bin/phpunit --version