Creating a base test-class for PHPUnit and extending it for common functionality results in class not found error

前端 未结 4 1362
南方客
南方客 2021-02-06 22:44

I\'m running PHPUnit using a bootstrap file for autoloading classes (generated by composer).

All my tests load up classes just fine, but for two of my tests, I made a \

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-06 23:16

    In PHP 7.0+ extends PHPUnit_Framework_TestCasechanged to extends \PHPUnit\Framework\TestCase, try this one.

提交回复
热议问题