Yii Framework Forum: PHPUnit CWebTestCase Installation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

PHPUnit CWebTestCase Installation Rate Topic: -----

#1 User is offline   zeroByte 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 17-February 12

Posted 16 July 2012 - 05:11 AM

Hi,

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



What am I doing wrong? I'm quite sure it's super-simple and I'm just slow on the uptake.

Regards,
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users