summaryrefslogtreecommitdiffstats
path: root/debian/patches/01-fix-phpunit11-compat.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2025-02-26 09:36:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2025-02-26 09:36:13 +0000
commit06ceac7c2310be40b8f281ab304f941e7759785f (patch)
tree594bed430b3fd436accacec6605b7bf91aae0440 /debian/patches/01-fix-phpunit11-compat.patch
parentAdding upstream version 1.8.4. (diff)
downloadphp-kissifrot-php-ixr-debian.tar.xz
php-kissifrot-php-ixr-debian.zip
Adding debian version 1.8.4-4.debian/1.8.4-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/01-fix-phpunit11-compat.patch')
-rw-r--r--debian/patches/01-fix-phpunit11-compat.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/01-fix-phpunit11-compat.patch b/debian/patches/01-fix-phpunit11-compat.patch
new file mode 100644
index 0000000..f640e4e
--- /dev/null
+++ b/debian/patches/01-fix-phpunit11-compat.patch
@@ -0,0 +1,41 @@
+Description: Fix phpunit 11 compatibility
+Forwarded: https://github.com/kissifrot/php-ixr/issues/11
+Bug-Debian: http://bugs.debian.org/1070558
+Author: Fab Stz <fabstz-it@yahoo.fr>
+Last-Update: 2024-07-21
+
+--- a/tests/DataType/DateTest.php
++++ b/tests/DataType/DateTest.php
+@@ -12,7 +12,7 @@
+ * @return array
+ * @see testParseIso
+ */
+- function provideDates()
++ static function provideDates()
+ {
+ return [
+ // full datetime, different formats
+@@ -44,10 +44,10 @@
+ * @param mixed $input
+ * @param int $expect
+ */
+- function testParseIso($input, $expect)
++ static function testParseIso($input, $expect)
+ {
+ $dt = new Date($input);
+- $this->assertEquals($expect, $dt->getTimeStamp());
++ self::assertEquals($expect, $dt->getTimeStamp());
+ }
+
+ }
+--- a/tests/Message/MessageTest.php
++++ b/tests/Message/MessageTest.php
+@@ -5,7 +5,7 @@
+ use IXR\Message\Message;
+ use PHPUnit\Framework\TestCase;
+
+-class ixr_library_ixr_message_test extends TestCase
++class MessageTest extends TestCase
+ {
+
+ function testUntypedValue()