Cannot find PHPUnit in include path is the error message I get when I try to run my code in phpstorm.
Cannot find PHPUnit in include path
In the PHP Settings, my PHP level language is 5
5
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.
use custom autoloader
Settings -> Languages and Frameworks -> PHP -> PHPUnit