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

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

Why I\'m getting this PHP error?

Fatal error: Class \'PHPUnit_Framework_TestCase\' not found in ...
13条回答
  •  甜味超标
    2020-11-29 20:04

    Assumption:

    Phpunit (3.7) is available in the console environment.

    Action:

    Enter the following command in the console:

    SHELL> phpunit "{{PATH TO THE FILE}}"
    

    Comments:

    You do not need to include anything in the new versions of PHPUnit unless you do not want to run in the console. For example, running tests in the browser.

提交回复
热议问题