【发布时间】:2016-08-12 18:00:10
【问题描述】:
如何使用 phpunit --testsuite 命令?
例如,我有一个测试文件:
test/xxx/RegistrationConfirmedListenerTest.php
如果我运行 phpunit,那么它将运行 RegistrationConfirmedListenerTest.php 中的测试,但它也会运行我的测试文件夹中的所有其他测试。
我尝试过使用这个 --testsuite 选项,如下所示:
phpunit --testsuite RegistrationConfirmedListenerTest
但是,没有运行。
PHPUnit 4.8.26 by Sebastian Bergmann and contributors.
Time: 46 ms, Memory: 4.00Mb
No tests executed!
我已阅读此处的文档,但没有任何示例可以提供帮助:
【问题讨论】: