I installed PHPUnit, set the test-paths accordingly, added the framework-directory of yii to the PHP-include-path.
Whenever I try to run a test, he complains that he can't find CWebTestCase. However, this is part of the framework itself, which I have successfully loaded.
Quote
dispy@dispy:/var/www/img/protected/modules/acl/tests$ phpunit unit/*
PHP Warning: include(CWebTestCase.php): failed to open stream: No such file or directory in /var/www/libs/yii-1.1.10.r3566/framework/YiiBase.php on line 418
PHP Warning: include(): Failed opening 'CWebTestCase.php' for inclusion (include_path='.:/usr/share/php:/var/www/libs/yii/framework/') in /var/www/libs/yii-1.1.10.r3566/framework/YiiBase.php on line 418
PHP Fatal error: Class 'CWebTestCase' not found in /var/www/img/protected/modules/acl/tests/WebTestCase.php on line 15
PHP Warning: include(CWebTestCase.php): failed to open stream: No such file or directory in /var/www/libs/yii-1.1.10.r3566/framework/YiiBase.php on line 418
PHP Warning: include(): Failed opening 'CWebTestCase.php' for inclusion (include_path='.:/usr/share/php:/var/www/libs/yii/framework/') in /var/www/libs/yii-1.1.10.r3566/framework/YiiBase.php on line 418
PHP Fatal error: Class 'CWebTestCase' not found in /var/www/img/protected/modules/acl/tests/WebTestCase.php on line 15
What am I doing wrong? I'm quite sure it's super-simple and I'm just slow on the uptake.
Regards,

Help











