PHPStorm 8 + PHPUnit 4.2.6 Error

后端 未结 3 1571
清酒与你
清酒与你 2021-01-19 21:45

I can\'t make PHPUnit 4.2.6 to work with PHPStorm 8.

PHPUnit is loaded as phar inside PHPStorm 8 settings.

Whenever i try t

3条回答
  •  别那么骄傲
    2021-01-19 22:08

    I got the exact same error, and fixed it like this:

    1. Installed phpunit using: composer global require phpunit/phpunit

    2. Goto phpstorm settings: PHPUnit

    3. Select "Use custom autoloader"

      • On Windows: C:\Users\[username]\AppData\Roaming\Composer\vendor\autoload.php
      • On Linux: /home/[username]/.composer/vendor/autoload.php
      • Or point it to the autoloader of your composer project

提交回复
热议问题