If you’re trying to run PHPUnit from the terminal in Mac OSX Lion, you may get an error similar to the following.
File/Iterator/Autoload.php failed to open stream
You can resolve this by running the following commands.
curl http://pear.php.net/go-pear.phar > go-pear.php sudo php -q go-pear.php
PHPUnit should now run without errors (or at least, without errors in their code 😉 ).
Don't have time to check my blog? Get a weekly email with all the new posts. This is my personal blog, so obviously it is 100% spam free.
Tags: mac, pear, PHP, phpunit, testing, unit testing
This entry was posted on Saturday, November 10th, 2012 at 1:18 pm and is filed under Programming, Tech. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.