File: 0001-Make-provider-classes-static-PHPUnit-11-fix.patch

package info (click to toggle)
php-voku-portable-ascii 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,336 kB
  • sloc: php: 5,651; xml: 46; makefile: 18
file content (31 lines) | stat: -rw-r--r-- 1,051 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sat, 18 May 2024 12:12:20 +0200
Subject: Make provider classes static (PHPUnit 11 fix)

Bug-Debian: https://bugs.debian.org/1070610
---
 tests/AsciiGlobalTest.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/AsciiGlobalTest.php b/tests/AsciiGlobalTest.php
index 4faa291..fb085a7 100644
--- a/tests/AsciiGlobalTest.php
+++ b/tests/AsciiGlobalTest.php
@@ -11,7 +11,7 @@ use voku\helper\ASCII;
  */
 final class AsciiGlobalTest extends \PHPUnit\Framework\TestCase
 {
-    public function slugifyProvider(): array
+    public static function slugifyProvider(): array
     {
         return [
             ['', ''],
@@ -388,7 +388,7 @@ final class AsciiGlobalTest extends \PHPUnit\Framework\TestCase
         }
     }
 
-    public function toAsciiProvider(): array
+    public static function toAsciiProvider(): array
     {
         return [
             ['      ! " # $ % & \' ( ) * + , @ `', " \v \t \n" . ' ! " # $ % & \' ( ) * + , @ `'], // ascii symbols