Skip to content

A free open source IT asset/license management system

Updated phpunit.xml

snipe44b690791991
diff --git a/phpunit.xml b/phpunit.xml
index c7f2568274..bf3fd2dc33 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,30 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- bootstrap="bootstrap/autoload.php"
- colors="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
- stopOnFailure="false">
- <testsuites>
- <testsuite name="Application Test Suite">
- <directory>./tests/</directory>
- </testsuite>
- </testsuites>
- <filter>
- <whitelist>
- <directory suffix=".php">app/</directory>
- </whitelist>
- </filter>
- <php>
- <env name="APP_ENV" value="testing-ci"/>
- <env name="CACHE_DRIVER" value="array"/>
- <env name="SESSION_DRIVER" value="array"/>
- <env name="QUEUE_DRIVER" value="sync"/>
- <env name="DB_CONNECTION" value="sqlite" />
- <server name="SERVER_NAME" value="http://127.0.0.1:8000"/>
- <ini name="display_errors" value="true"/>
- </php>
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="bootstrap/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
+ <coverage>
+ <include>
+ <directory suffix=".php">app/</directory>
+ </include>
+ </coverage>
+ <testsuites>
+ <testsuite name="Application Test Suite">
+ <directory>./tests/</directory>
+ </testsuite>
+ </testsuites>
+ <php>
+ <env name="APP_ENV" value="testing-ci"/>
+ <env name="CACHE_DRIVER" value="array"/>
+ <env name="SESSION_DRIVER" value="array"/>
+ <env name="QUEUE_DRIVER" value="sync"/>
+ <env name="DB_CONNECTION" value="sqlite"/>
+ <server name="SERVER_NAME" value="http://127.0.0.1:8000"/>
+ <ini name="display_errors" value="true"/>
+ </php>
</phpunit>