UnitTetst with method not work

Hello everyone! 

I can't win some problem. When i launch test of method, i see error "Cannot open file "UnitTests\ParsingTagsTest"."

It's because phpstorm doesn't generate right CMD:

C:\work\bin\php7.3\php.exe C:/work/data/hosts/clear.loc/parsing_strin_on_tags_data_description/vendor/phpunit/phpunit/phpunit --configuration C:\work\data\hosts\clear.loc\parsing_strin_on_tags_data_description\phpunit.xml --filter "/(::testCheckThatDataHasNotRightFormat)( .*)?$/" UnitTests\ParsingTagsTest C:\work\data\hosts\clear.loc\parsing_strin_on_tags_data_description\unittests\ParsingTagsTest.php --teamcity --cache-result-file=C:\work\data\hosts\clear.loc\parsing_strin_on_tags_data_description\.phpunit.result.cache
PHPUnit 9.0.1 by Sebastian Bergmann and contributors.

 

Here "UnitTests\ParsingTagsTest" needs replace on UnitTests\ParsingTagsTest.php, then all ok.

 

Maby someone hase solution of this problem.

1 comment
Comment actions Permalink

This is fixed only starting version 2020.1: https://youtrack.jetbrains.com/issue/WI-50201.

Until now I would suggest to use PHPUnit 8.

1

Please sign in to leave a comment.