Browse Source

phpunit 10: composer.json and phpunit.xml.dist adjustment

Kevin Pfeifer 3 years ago
parent
commit
25cbbbd22e
2 changed files with 6 additions and 7 deletions
  1. 1 1
      composer.json
  2. 5 6
      phpunit.xml.dist

+ 1 - 1
composer.json

@@ -61,7 +61,7 @@
         "http-interop/http-factory-tests": "^0.9.0",
         "mikey179/vfsstream": "^1.6.10",
         "paragonie/csp-builder": "^2.3",
-        "phpunit/phpunit": "^9.5.19"
+        "phpunit/phpunit": "^10"
     },
     "suggest": {
         "ext-curl": "To enable more efficient network calls in Http\\Client.",

+ 5 - 6
phpunit.xml.dist

@@ -1,10 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<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"
-    convertDeprecationsToExceptions="true"
-    >
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
+         colors="true"
+         bootstrap="tests/bootstrap.php"
+         backupGlobals="true"
+         cacheDirectory=".phpunit.cache">
     <testsuites>
         <testsuite name="cakephp">
             <directory>tests/TestCase/</directory>