在我的应用程序中,我在源代码旁边有 phpunit 测试。所以在接下来的所有地图中,假设 DoSometing.class.php 我有一个 DoSomethingTest.class.php。
我想配置 phpunit.xml 来测试所有这些 *Test.class.php 文件。
我该如何在 phpunit.xml 中做到这一点?
我现在有这样的事情:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="false"
backupStaticAttributes="true"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="true"
stopOnFailure="true"
syntaxCheck="false">
<testsuites>
<testsuite name="My Test Suite">
<directory>./*Test.class.php</directory>
</testsuite>
</testsuites>
<groups />
<filter />
<logging />
<listeners />
</phpunit>