I\'m trying to install PHPUnit 3.5 on Mac OS X with MAMP. I did install PHPUnit 3.5 via PEAR of MAMP. This is all correctly and phpunit is located /Applications/MAMP/bin/php
I succeeded in installing PHPUnit with XAMPP on Mac, but it took me some time.
One of the trick was to edit the phpunit script to configure it to use XAMPP (or MAMP) PHP executable, and not the default one on Mac.