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

package info (click to toggle)
php-masterminds-html5 2.10.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 824 kB
  • sloc: php: 9,678; makefile: 21
file content (49 lines) | stat: -rw-r--r-- 1,924 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 19 May 2024 19:55:57 +0200
Subject: Make provider functions static (PHPUnit 11 Fix)

Bug-Debian: https://bugs.debian.org/1070568
---
 test/HTML5/Serializer/OutputRulesTest.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/HTML5/Serializer/OutputRulesTest.php b/test/HTML5/Serializer/OutputRulesTest.php
index 991092c..30c6398 100644
--- a/test/HTML5/Serializer/OutputRulesTest.php
+++ b/test/HTML5/Serializer/OutputRulesTest.php
@@ -40,7 +40,7 @@ class OutputRulesTest extends \Masterminds\HTML5\Tests\TestCase
      *
      * @return \ReflectionMethod for the specified method
      */
-    public function getProtectedMethod($name)
+    public static function getProtectedMethod($name)
     {
         $class = new \ReflectionClass('\Masterminds\HTML5\Serializer\OutputRules');
         $method = $class->getMethod($name);
@@ -49,7 +49,7 @@ class OutputRulesTest extends \Masterminds\HTML5\Tests\TestCase
         return $method;
     }
 
-    public function getTraverserProtectedProperty($name)
+    public static function getTraverserProtectedProperty($name)
     {
         $class = new \ReflectionClass('\Masterminds\HTML5\Serializer\Traverser');
         $property = $class->getProperty($name);
@@ -382,7 +382,7 @@ class OutputRulesTest extends \Masterminds\HTML5\Tests\TestCase
         $this->assertEquals('foo', stream_get_contents($s, -1, 0));
     }
 
-    public function getEncData()
+    public static function getEncData()
     {
         return array(
             array(
@@ -463,7 +463,7 @@ class OutputRulesTest extends \Masterminds\HTML5\Tests\TestCase
         $this->assertEquals($expected, $m->invoke($o, $test, $isAttribute));
     }
 
-    public function booleanAttributes()
+    public static function booleanAttributes()
     {
         return array(
             array('<img alt="" ismap>'),