File: make-test-data-providers-static-for-PHPUnit-11.patch

package info (click to toggle)
christianriesen-base32 1.6.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: php: 249; makefile: 24; sh: 7
file content (71 lines) | stat: -rw-r--r-- 2,266 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
From: Joe Nahmias <jello@debian.org>
Date: Sun, 31 Aug 2025 10:35:28 -0400
Subject: make test data providers static for PHPUnit 11

---
 tests/Base32HexTest.php | 6 +++---
 tests/Base32Test.php    | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/Base32HexTest.php b/tests/Base32HexTest.php
index 3386ea1..b97762f 100644
--- a/tests/Base32HexTest.php
+++ b/tests/Base32HexTest.php
@@ -29,7 +29,7 @@ class Base32HexTest extends TestCase
     /**
      * @return array<string, array>
      */
-    public function decodeDataProvider(): array
+    public static function decodeDataProvider(): array
     {
         $encodeData = [
             'Empty String' => ['', ''],
@@ -43,7 +43,7 @@ class Base32HexTest extends TestCase
     /**
      * @return array<string, array>
      */
-    public function encodeDataProvider(): array
+    public static function encodeDataProvider(): array
     {
         $encodeData = [
             'Empty String' => ['', ''],
@@ -58,7 +58,7 @@ class Base32HexTest extends TestCase
      *
      * @return array<string, array>
      */
-    public function backAndForthDataProvider(): array
+    public static function backAndForthDataProvider(): array
     {
         return Base32Test::BASE_CLEAR_STRINGS;
     }
diff --git a/tests/Base32Test.php b/tests/Base32Test.php
index 98ff97e..ac1de5c 100644
--- a/tests/Base32Test.php
+++ b/tests/Base32Test.php
@@ -45,7 +45,7 @@ class Base32Test extends TestCase
     /**
      * @return array<string, array>
      */
-    public function decodeDataProvider(): array
+    public static function decodeDataProvider(): array
     {
         $encodeData = [
             'Empty String' => ['', ''],
@@ -60,7 +60,7 @@ class Base32Test extends TestCase
     /**
      * @return array<string, array>
      */
-    public function encodeDataProvider(): array
+    public static function encodeDataProvider(): array
     {
         $encodeData = [
             'Empty String' => ['', ''],
@@ -76,7 +76,7 @@ class Base32Test extends TestCase
      *
      * @return array<string, array>
      */
-    public function backAndForthDataProvider(): array
+    public static function backAndForthDataProvider(): array
     {
         return self::BASE_CLEAR_STRINGS;
     }