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.
请先登录再写评论。
This is fixed only starting version 2020.1: https://youtrack.jetbrains.com/issue/WI-50201.
Until now I would suggest to use PHPUnit 8.