PhpStorm & PHPUnit 6: PhpStorm always creates PHPUnit templates for <5

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

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

I configured PHP7 in PhpStorm enter image description here

But I can not create PHPUnit 6 tests in the IDE. When I try to auto-create templates (new-> phpunit), the templates are in pre PHPUnit 6 format enter image description here

I also tried to create the tests manually, but PhpStorm could not find the PHPUnit 6 classes. I have PhpStorm pointing to the php phpunit file. enter image description here

Here I will fix it.

PhpStorm also complains that the class was PHPUnit_Framework_TestCasenot found. Therefore, I cannot work with the new PHPUnit or the old one.

Did I miss something?

+4
1

PHPUnit 6 PhpStorm 2017.1 EAP, l, .

0

Source: https://habr.com/ru/post/1668891/


All Articles