Cannot find PHPUnit in include path phpstorm

前端 未结 7 1461
-上瘾入骨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:32

    I had this same problem for PHPStorm 2017 using Vagrant. First go to Settings -> Languages and Frameworks -> PHP and Add a remote interpreter, then go to Settings -> Languages and Frameworks -> PHP -> PHPUnit click the + on top and click by Remote Interpreter. If you're using Composer autoloader, then enter your full Vagrant path to your autoloader file.

提交回复
热议问题