PhpStorm & PHPUnit 6 : PhpStorm always creates PHP

2019-06-25 04:28发布

I am trying to run some PHPUnit 6 tests in PhpStorm. These are my configurations.

Copies the .phar file to my machine following instructions in here. And now, I can verify my version, enter image description here

I have configured PHP7 in PhpStorm enter image description here

But, I cannot seem to create PHPUnit 6 tests in the IDE. When I try to autocreate templates (new->phpunit), the templates have the pre PHPUnit 6 format enter image description here

I tried to create the tests manually as well, but PhpStorm cannot find the PHPUnit 6 classes. I have PhpStorm pointing to the phpunit phar file. enter image description here

I am in a fix here.

PhpStorm also complains the class PHPUnit_Framework_TestCase can't be found. So I can't work with the new PHPUnit or the old one.

Am I missing something?

1条回答
ゆ 、 Hurt°
2楼-- · 2019-06-25 04:53

PHPUnit 6 support is currently available in the PhpStorm 2017.1 EAP,l which you can run alongside your regular installation.

Article with more details

Download

查看更多
登录 后发表回答