December 2, 2009 | 2 Comments
The main trick is not to mix pear as is /usr/bin/pear and /usr/local/zend/bin/pear. If you have already installed PHPUnit using the default Mac OS X Pear, do not mix /usr/bin/phpunit and /usr/local/zend/bin/phpunit.
That confusion out of the way, it seems the pear installed with the zend server is far from up to date. RUpdate it as follow :
# remove the reg file for pear.php.net as its wrong
# remove the .channels as it is obsolete
mv /usr/local/zend/share/pear/.channels /usr/local/zend/share/pear/.channels.old
# now lets get the correct settings
/usr/local/zend/bin/pear channel-update pear.php.net
# update the pear installer
/usr/local/zend/bin/pear upgrade pear
All this done, proceeed with the PHPUnit install
# phpunit moved from pear to there own pear server, so you need to add there channel
/usr/local/zend/bin/pear channel-discover pear.phpunit.de
# now you can add phpunit
/usr/local/zend/bin/pear install -a phpunit/PHPUnit
That’s it! Below are a couple of links to helpful pages.