Browse Source

Update phpunit's config file. (#15752)

Replace deprecated <filter> tag with <coverage>.
ADmad 4 years ago
parent
commit
f9ecf66579
1 changed files with 14 additions and 17 deletions
  1. 14 17
      phpunit.xml.dist

+ 14 - 17
phpunit.xml.dist

@@ -1,10 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<phpunit
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
     colors="true"
     bootstrap="tests/bootstrap.php"
     backupGlobals="true"
-    >
-
+>
     <testsuites>
         <testsuite name="cakephp">
             <directory>tests/TestCase/</directory>
@@ -18,24 +17,22 @@
     </testsuites>
 
     <extensions>
-        <extension class="Cake\TestSuite\FixtureSchemaExtension" />
+        <extension class="Cake\TestSuite\FixtureSchemaExtension"/>
     </extensions>
 
     <!-- Prevent coverage reports from looking in tests, vendors, config folders -->
-    <filter>
-        <whitelist>
+    <coverage>
+        <include>
             <directory suffix=".php">src/</directory>
-            <exclude>
-                <!--
-                This file contains a few functions that cannot be tested
-                as they contain die; or breakpoint functionality.
-                -->
-                <file>src/basics.php</file>
-                <!-- This file is deprecated and unused -->
-                <file>src/Core/ClassLoader.php</file>
-            </exclude>
-        </whitelist>
-    </filter>
+        </include>
+        <exclude>
+            <!--
+            This file contains a few functions that cannot be tested
+            as they contain die; or breakpoint functionality.
+            -->
+            <file>src/basics.php</file>
+        </exclude>
+    </coverage>
 
     <php>
         <ini name="memory_limit" value="-1"/>