I'm trying to install PHPUnit on my MBP with OSX Mavericks. The install part is going great, pear throws no errors, exceptions or whatsoever. But when I try to execute the phpunit command in terminal it does throw an error.
I've searched far and wide for an answer, but I can't find anything that solves the problem.
This is what happens:
PHP Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.:') in /usr/local/pear/share/pear/PHPUnit/Autoload.php on line 64
EDIT: I had it working on Mountain Lion, but since I've upgraded to Mavericks phpunit was broken. Also, I've checked the directory of the autoload.php, and the file is there..
Can somebody please explain what's going on? It's starting to drive me mad..
The solution was to use the IDE PHPStorm and Composer. Which gives the advantage to install dependencies on a project base.
Thanks to Paves S. for the recommendation.
For more information on how to install:
http://www.jetbrains.com/phpstorm/webhelp/enabling-phpunit-support.html