Having a lot of problems installing phpunit with Yii. I run:
$ phpunit unit/dbTest.php
But it turns out this error:
PHP Warning: require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /opt/yii-1.1.10.r3566/framework/test/CTestCase.php on line 12
(include_path='.:/usr/bin:/usr/share/php:/usr/bin/pear:/usr/share/php/Zend/:/opt/php5.3.10/lib/php/PHPUnit'
Some details about my installation:
$ phpunit --version
PHPUnit 3.4.5 by Sebastian Bergmann.
php --version
PHP 5.3.10 (cli) (built: Apr 6 2012 20:06:37) ( rebuilt didn't help :( )
pear list phpunit/phpunit
....
php /opt/php5.3.10/lib/php/PHPUnit/Autoload.php
According to that info, autoload is installed, and is on the include path.
I'm unsure what else I need to do - can anyone shed a light please?
PHPUnit/Autoload.php
your include path does not havePHPUnit/Autoload.php
as a result of setting thePHPUnit
directory of include without the parent directory. - Steve Buzonas