update phpunit xml to newer format (#10470)

This commit is contained in:
William Cheng 2021-09-25 13:58:27 +08:00 committed by GitHub
parent 4e029e99ea
commit 871b9ab5b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 42 deletions

View File

@ -1,23 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./vendor/autoload.php" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
colors="true" <coverage processUncoveredFiles="true">
convertErrorsToExceptions="true" <include>
convertNoticesToExceptions="true" <directory suffix=".php">{{apiSrcPath}}</directory>
convertWarningsToExceptions="true" <directory suffix=".php">{{modelSrcPath}}</directory>
stopOnFailure="false"> </include>
</coverage>
<testsuites> <testsuites>
<testsuite name="tests"> <testsuite name="tests">
<directory>{{apiTestPath}}</directory> <directory>{{apiTestPath}}</directory>
<directory>{{modelTestPath}}</directory> <directory>{{modelTestPath}}</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">{{apiSrcPath}}</directory>
<directory suffix=".php">{{modelSrcPath}}</directory>
</whitelist>
</filter>
<php> <php>
<ini name="error_reporting" value="E_ALL" /> <ini name="error_reporting" value="E_ALL"/>
</php> </php>
</phpunit> </phpunit>

View File

@ -1,23 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./vendor/autoload.php" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
colors="true" <coverage processUncoveredFiles="true">
convertErrorsToExceptions="true" <include>
convertNoticesToExceptions="true" <directory suffix=".php">./lib/Api</directory>
convertWarningsToExceptions="true" <directory suffix=".php">./lib/Model</directory>
stopOnFailure="false"> </include>
</coverage>
<testsuites> <testsuites>
<testsuite name="tests"> <testsuite name="tests">
<directory>./test/Api</directory> <directory>./test/Api</directory>
<directory>./test/Model</directory> <directory>./test/Model</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./lib/Api</directory>
<directory suffix=".php">./lib/Model</directory>
</whitelist>
</filter>
<php> <php>
<ini name="error_reporting" value="E_ALL" /> <ini name="error_reporting" value="E_ALL"/>
</php> </php>
</phpunit> </phpunit>