File: 0024-RequiresPhpunit-12-for-test-failing-with-PHPUnit-12.patch

package info (click to toggle)
shaarli 0.15.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,640 kB
  • sloc: php: 30,003; javascript: 2,061; makefile: 135; xml: 69; python: 42; sh: 35
file content (29 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Fri, 21 Mar 2025 15:27:17 +0100
Subject: RequiresPhpunit('< 12') for test failing with PHPUnit 12

---
 tests/config/ConfigPhpTest.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/config/ConfigPhpTest.php b/tests/config/ConfigPhpTest.php
index 7489fde..06f4729 100644
--- a/tests/config/ConfigPhpTest.php
+++ b/tests/config/ConfigPhpTest.php
@@ -2,6 +2,8 @@
 
 namespace Shaarli\Config;
 
+use PHPUnit\Framework\Attributes\RequiresPhpunit;
+
 /**
  * Class ConfigPhpTest
  *
@@ -44,6 +46,7 @@ class ConfigPhpTest extends \Shaarli\TestCase
     /**
      * Read an empty existent config file -> array with blank default values.
      */
+    #[RequiresPhpunit('< 12')]
     public function testReadEmpty()
     {
         $dataFile = 'tests/utils/config/emptyConfigPhp.php';