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
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.