Cannot find PHPUnit in include path phpstorm

前端 未结 7 1448
-上瘾入骨i
-上瘾入骨i 2021-01-31 16:19

Cannot find PHPUnit in include path is the error message I get when I try to run my code in phpstorm.

In the PHP Settings, my PHP level language is 5

7条回答
  •  隐瞒了意图╮
    2021-01-31 16:33

    I had this problem after adding PHPUnit via composer.

    I fixed this by choosing use custom autoloader in Settings -> Languages and Frameworks -> PHP -> PHPUnit, then adding /vendor/autoload.php as the location of the custom autoloader.

提交回复
热议问题