Attempting to run PHPUnit with a configuration XML file results in exception

后端 未结 3 2048
感情败类
感情败类 2021-01-04 23:43

I\'m trying (for quite a while, with help from fellas at the PHP chat room) to succesfully integrate PHPUnit with PhpStorm.

I\'ve set up the phpunit.xml

3条回答
  •  一整个雨季
    2021-01-05 00:24

    Had the same problem changed the value for directory to an absolute path instead of a relative path and it worked. For example I changed tests into C:\eclipse\Workspace\testweb

    Too bad I had to go through a lot of non information and this isn't mentioned in the documentation, neither is it documented how to start the command line interface with a configuration xml file.

    phpunit -c tests/all.xml

    The php test files have to end with test as well like myTest.php even when you're adding file elements C:\eclipse\Workspace\testweb\tests\classes\something.php would not work but C:\eclipse\Workspace\testweb\tests\classes\somethingtest.php would work

提交回复
热议问题