PhpStorm & PHPUnit 6 : PhpStorm always creates PHP

2019-06-25 04:46发布

问题:

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,

I have configured PHP7 in PhpStorm

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

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.

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:

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