]> Raphaël G. Git Repositories - blog/commitdiff
Recipe phpunit/phpunit update
authorRaphaël Gertz <git@rapsys.eu>
Wed, 25 Nov 2026 17:01:53 +0000 (18:01 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 25 Nov 2026 17:01:53 +0000 (18:01 +0100)
.env.test
bin/phpunit [new file with mode: 0644]
phpunit.xml.dist
symfony.lock

index 24a43c03bbc22615a9f7361f5c83604019593b41..64bd11143de6bdcee21dbea74a92c8a2ce3cd803 100644 (file)
--- a/.env.test
+++ b/.env.test
@@ -1,4 +1,3 @@
 # define your env variables for the test env here
 KERNEL_CLASS='App\Kernel'
 APP_SECRET='$ecretf0rt3st'
-SYMFONY_DEPRECATIONS_HELPER=999999
diff --git a/bin/phpunit b/bin/phpunit
new file mode 100644 (file)
index 0000000..ac5eef1
--- /dev/null
@@ -0,0 +1,4 @@
+#!/usr/bin/env php
+<?php
+
+require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
index 0d10805466de624681568c66892cad2b02753963..e24400079aee18835a3cbc17a6945b9fc0d8d103 100644 (file)
@@ -3,8 +3,8 @@
 <!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
 <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
-         backupGlobals="false"
          colors="true"
+         failOnDeprecation="true"
          failOnNotice="true"
          failOnWarning="true"
          bootstrap="tests/bootstrap.php"
         </testsuite>
     </testsuites>
 
-    <source ignoreSuppressionOfDeprecations="true" restrictNotices="true" restrictWarnings="true">
+    <source ignoreSuppressionOfDeprecations="true"
+            ignoreIndirectDeprecations="true"
+            restrictNotices="true"
+            restrictWarnings="true"
+    >
         <include>
             <directory>src</directory>
         </include>
+
+        <deprecationTrigger>
+            <method>Doctrine\Deprecations\Deprecation::trigger</method>
+            <method>Doctrine\Deprecations\Deprecation::delegateTriggerToBackend</method>
+            <function>trigger_deprecation</function>
+        </deprecationTrigger>
     </source>
 
     <extensions>
index 3bbf0ad7d46133623c34eb889894e93bb0c93448..ccb71d3a125f412a2ebaf3bc299f3684ff5a5f21 100644 (file)
         ]
     },
     "phpunit/phpunit": {
-        "version": "10.5",
+        "version": "13.4",
         "recipe": {
             "repo": "github.com/symfony/recipes",
             "branch": "main",
-            "version": "10.0",
-            "ref": "bb22cf8d8c554a623b427d5f3416b538f5525233"
+            "version": "11.1",
+            "ref": "ca0bc067abfb40a8de1b2561b96cbfc2b833c314"
         },
         "files": [
             ".env.test",
+            "bin/phpunit",
             "phpunit.xml.dist",
             "tests/bootstrap.php"
         ]