【发布时间】:2018-10-31 08:26:27
【问题描述】:
我想创建一个运行测试方法列表的测试套件。 我刚刚找到了一种运行整个文件的方法。 有没有办法只运行特定的方法? 像这样:
<phpunit bootstrap="src/autoload.php">
<testsuites>
<testsuite name="money">
<file>tests/IntlFormatterTest.php::test1</file>
<file>tests/IntlFormatterTest.php::test5</file>
<file>tests/CurrencyTest.php::test7</file>
</testsuite>
</testsuites>
</phpunit>
【问题讨论】:
标签: php phpunit test-suite