Cannot find PHPUnit in include path phpstorm

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

    This is the way to do it without using composer, and using your global phpunit.

    1. Phpunit now comes with a phar file. My path was /usr/local/Cellar/phpunit/5.0.0/libexec/phpunit-5.0.0.phar

    1. PhpStorm Preferences -> Path to phpunit.phar -> select the phpunit phar

    1. That's all, good stuff.

提交回复
热议问题