Answer the question
In order to leave comments, you need to log in
Yii 1.1 and PHPUnit 4.0.14 - why are tests not running?
OpenServer 5.0.0
Yii 1.1
PHPUnit 4.0.14 Updated
OpenServer and phpunit.
Updated CTestCase like here https://github.com/yiisoft/yii/blob/master/framewo... Error
when running tests:
Fatal error: Uncaught exception 'PHPUnit_Framework_Error_Warning' with message 'include(PHPUnit_Extensions_Story_TestCase.php): failed to open stream: No such file or directory' in \framework\YiiBase.php on line 423
PHPUnit_Framework_Error_Warning: include(PHPUnit_Extensions_Story_TestCase.php): failed to open stream: No such file or directory in \framework\YiiBase.php on line 423
Answer the question
In order to leave comments, you need to log in
I had a problem too. On Yii 1.1.14, phpunt 4+ did not start.
I dug for a long time - I found a discussion of this problem on some English-language forum. The thing is that Yii "breaks" the phpunit autoloader.
I solved this problem by installing phpunit 3.7.32 . It is this version. Because with 3.5 there was also a problem. What did they do there. But this version works fine.
Because it is not necessary to connect something for phpunit. Use composer and phpunit itself as a dev dependency. Just connect the composer autoloader after yii and everything will work.
If you are using the phar version, then it seems like you don’t need to include anything. But I'm not going to speak here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question