Cannot find PHPUnit in include path phpstorm

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

    For those that are looking at it in 2020, starting from PHPStorm 2019 this is under:

    Languages and Frameworks->PHP->Test Frameworks
    
    1. Choose to add a new library
    2. Select "PHPUnit"
    3. Select "Path to phpunit.phar" radio
    4. You'll have an automatic option to download PHPUnit

提交回复
热议问题