I looked through similar problems on SO, but to no avail. I am running PHP 5.3.6 and phpunit version 3.6.10. When trying to run a simple test:
require_once 'PHPUnit/Framework.php'; class UserTest extends PHPUnit_Framework_TestCase { }
I get the following error:
PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Framework.php' (include_path='.:/Users/username/pear/share/pear:/usr/lib/php/pear/:/Users/username/pear/share/pear/PHPUnit') in ...
When reinstalling PHPUnit, I'm not sure that the installation location was duplicated, but it seems that when you run which phpunit
path is as follows: /usr/bin/phpunit
. However, it is also installed in /Users/user/pear/bin/phpunit
. I tried updating all channels and reinstalling PEAR and PHPUnit, but the problem still exists. I work on OSX Lion. Any help would be greatly appreciated.
source share