本文介绍了PhpStorm PHPUnit testreporter错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过Composer安装了PHPUnit,并将其设置为通过设置通过安装运行单元测试.

I have installed PHPUnit via Composer and set it up to run the unit tests with my installation through settings.

但是当我运行测试时,对于测试报告程序,我得到以下错误(tets执行得很好):

But when I run the tests I get the following error for the test reporter (the tets executes just fine):

推荐答案

通过Composer使用PHPUnit时,应在Settings | PHP | PHPUnit指向vendor/autoload.php.

You should point to your vendor/autoload.php at Settings | PHP | PHPUnit when using PHPUnit via Composer.

此博客文章包含所有详细信息(带有图片),可以针对这种情况成功配置IDE:

This blog post has all the details (with pictures) to successfully configure IDE for such scenario: http://confluence.jetbrains.com/display/PhpStorm/PHPUnit+Installation+via+Composer+in+PhpStorm

相关的可用性标签: http://youtrack.jetbrains.com/issue/WI- 18388

PS WI-18388票证已在v8.0中修复

P.S.The WI-18388 ticket is already fixed in v8.0

这篇关于PhpStorm PHPUnit testreporter错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 08:01