PHPunit在配置文件中找不到测试

时间:2018-06-22 07:55:45

标签: php unit-testing testing phpunit automated-tests

我有以下测试对象:

<testsuite name="censored"> <directory>root/**/Unit</directory> </testsuite>

运行./vendor/bin/phpunit会导致

  

未执行测试!

但是当我这样做

./vendor/bin/phpunit root/**/Unit

它确实可以运行我的测试。

为什么PHPUnit无法在配置文件中看到我定义的测试,但是当手动指定路径时,它确实可以工作吗?

0 个答案:

没有答案