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

后端 未结 13 1137
攒了一身酷
攒了一身酷 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 19:59

    For me, it was because I ran

    $ phpunit .
    

    instead of

    $ phpunit
    

    when I already had a configured phpunit.xml file in the working directory.

提交回复
热议问题