File: 0001-Make-provider-functions-static-PHPUnit-11-Fix.patch

package info (click to toggle)
php-algo26-idna-convert 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 592 kB
  • sloc: php: 5,691; xml: 18; makefile: 18
file content (113 lines) | stat: -rw-r--r-- 3,297 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sun, 19 May 2024 19:48:00 +0200
Subject: Make provider functions static (PHPUnit 11 Fix)

Bug-Debian: https://bugs.debian.org/1070516
---
 tests/integration/ToIdnTest.php     | 8 ++++----
 tests/integration/ToUnicodeTest.php | 8 ++++----
 tests/unit/namePrepTest.php         | 4 ++--
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/tests/integration/ToIdnTest.php b/tests/integration/ToIdnTest.php
index 31d909b..7ee5392 100644
--- a/tests/integration/ToIdnTest.php
+++ b/tests/integration/ToIdnTest.php
@@ -100,7 +100,7 @@ class ToIdnTest extends TestCase
         );
     }
 
-    public function providerUtf8()
+    public static function providerUtf8()
     {
         return [
             ['', ''],
@@ -162,7 +162,7 @@ class ToIdnTest extends TestCase
         ];
     }
 
-    public function providerUtf8Idna2003()
+    public static function providerUtf8Idna2003()
     {
         return [
             ['daß.example', 'dass.example'],
@@ -176,7 +176,7 @@ class ToIdnTest extends TestCase
         ];
     }
 
-    public function providerEmailAddress()
+    public static function providerEmailAddress()
     {
         return [
             ['some.user@мениджмънт.example', 'some.user@xn--d1abegsede9b0e.example'],
@@ -186,7 +186,7 @@ class ToIdnTest extends TestCase
         ];
     }
 
-    public function providerUrl()
+    public static function providerUrl()
     {
         return [
             [
diff --git a/tests/integration/ToUnicodeTest.php b/tests/integration/ToUnicodeTest.php
index 43d3aa6..c11e828 100644
--- a/tests/integration/ToUnicodeTest.php
+++ b/tests/integration/ToUnicodeTest.php
@@ -87,7 +87,7 @@ class ToUnicodeTest extends TestCase
     /**
      * @return array
      */
-    public function providerUtf8()
+    public static function providerUtf8()
     {
         return [
             ['xn--mller-kva', 'müller'],
@@ -141,7 +141,7 @@ class ToUnicodeTest extends TestCase
         ];
     }
 
-    public function providerException(): array
+    public static function providerException(): array
     {
         return [
             ['xn--style-321'],
@@ -157,7 +157,7 @@ class ToUnicodeTest extends TestCase
         ];
     }
 
-    public function providerEmailAddress()
+    public static function providerEmailAddress()
     {
         return [
             ['some.user@xn--d1abegsede9b0e.example', 'some.user@мениджмънт.example'],
@@ -167,7 +167,7 @@ class ToUnicodeTest extends TestCase
         ];
     }
 
-    public function providerUrl()
+    public static function providerUrl()
     {
         return [
             [
diff --git a/tests/unit/namePrepTest.php b/tests/unit/namePrepTest.php
index 1725b4d..700a7b6 100644
--- a/tests/unit/namePrepTest.php
+++ b/tests/unit/namePrepTest.php
@@ -74,7 +74,7 @@ class namePrepTest extends TestCase
         $this->namePrep2003->do($sequence);
     }
 
-    public function providerMapping2003()
+    public static function providerMapping2003()
     {
         return [
             [
@@ -129,7 +129,7 @@ class namePrepTest extends TestCase
         ];
     }
 
-    public function providerProhibited()
+    public static function providerProhibited()
     {
         return [
             [