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 d0bcee1..9921f90 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>'),
|