Skip to content

Commit

Permalink
Migrate PHPUnit configuration for the PHPUnit 9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k authored and Ayesh committed Nov 28, 2022
1 parent e26cc57 commit cd5cb03
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.1/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
executionOrder="depends,defects"
forceCoversAnnotation="false"
Expand All @@ -16,14 +16,18 @@
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</include>
<report>
<html outputDirectory="build/coverage-html"/>
<text outputFile="php://stdout" showUncoveredFiles="false"/>
</report>
</coverage>

<logging>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
<log type="coverage-html" target="build/coverage-html"/>
<text outputFile="php://stdout"/>
<testdoxHtml outputFile="build/coverage-html"/>
</logging>
</phpunit>

0 comments on commit cd5cb03

Please sign in to comment.