PHPStorm、Phpunit PHP_CodeCoverage_Filter::addFileToBlacklist()

PHPStorm, Phpunit PHP_CodeCoverage_Filter::addFileToBlacklist()

当我从命令行启动 PhpUnit 测试 (phpunit.phar) 时一切正常。

如果我从 PhpStorm 开始测试它会抛出这个错误

PHP_CodeCoverage_Filter::addFileToBlacklist()

我使用 PhpStorm 9。

请尝试 PhpStorm v9.5 EAP build -- 它支持 PHPUnit v5 + 重写了帮助脚本。

如果您不想使用 EAP 版本,您可以暂时将 phpunit/php-code-coverage 固定到 "phpunit/php-code-coverage": "dev-master#b8436b000263f6d72fbad1d36890e247ce84857e"

关于 GitHub 的错误报告 https://github.com/sebastianbergmann/php-code-coverage/issues/390