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

后端 未结 3 2077
感情败类
感情败类 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:27

    Drop the /* from the element. This element's text content should point to a directory—not a file glob.

    Custom
    

    See the PHPUnit configuration documentation for more details on specifying individual files and inclusion patterns.

    By default all files ending in Test.php (e.g. UserTest.php) will be inspected for test cases. If you have a different naming convention you can either switch or add the suffix attribute. For example, if you name your tests like User.test.php use this:

    Custom
    

提交回复
热议问题