Why, Fatal error: Class 'PHPUnit_Framework_TestCase' not found in …?

后端 未结 13 1112
攒了一身酷
攒了一身酷 2020-11-29 19:23

Why I\'m getting this PHP error?

Fatal error: Class \'PHPUnit_Framework_TestCase\' not found in ...
13条回答
  •  -上瘾入骨i
    2020-11-29 20:10

    I am using php 5.6 on window 10 with zend 1.12 version for me adding

    require_once 'PHPUnit/Autoload.php';

    before

    abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_TestCase

    worked. We need to add this above statement in ControllerTestCase.php file

提交回复
热议问题