私のアプリケーションでは、ソース コードの横に phpunit テストがあります。したがって、次のすべてのマップで、DoSometing.class.php としましょう。DoSomethingTest.class.php があります。
これらすべての *Test.class.php ファイルをテストするように phpunit.xml を構成したいと考えています。
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>