summaryrefslogtreecommitdiffstats
path: root/php-simplepie-tests.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-03-23 16:19:39 +0100
committerRemi Collet <remi@remirepo.net>2021-03-23 16:19:39 +0100
commit5886f2d426a86aca8ad68dc3dcbd2acc34e402c5 (patch)
tree1c4e59786958993d23c979f07415bc5634c9df54 /php-simplepie-tests.patch
parent562641ccbb7fc5f3bd35d252ebf8a463dfb94c43 (diff)
update to 1.5.6HEADmaster
switch to phpunit7 and fix FTBFS with PHP 8
Diffstat (limited to 'php-simplepie-tests.patch')
-rw-r--r--php-simplepie-tests.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/php-simplepie-tests.patch b/php-simplepie-tests.patch
new file mode 100644
index 0000000..622a22d
--- /dev/null
+++ b/php-simplepie-tests.patch
@@ -0,0 +1,23 @@
+diff -up ./tests/CacheTest.php.php8 ./tests/CacheTest.php
+--- ./tests/CacheTest.php.php8 2021-03-23 16:04:28.360182642 +0100
++++ ./tests/CacheTest.php 2021-03-23 16:04:50.771096776 +0100
+@@ -76,6 +76,7 @@ class CacheTest extends PHPUnit\Framewor
+ {
+ /**
+ * @expectedException Exception_Success
++ * @requires PHP < 8
+ */
+ public function testDirectOverrideLegacy()
+ {
+diff -up ./tests/EncodingTest.php.php8 ./tests/EncodingTest.php
+--- ./tests/EncodingTest.php.php8 2021-03-23 16:06:41.482672604 +0100
++++ ./tests/EncodingTest.php 2021-03-23 16:06:46.003655284 +0100
+@@ -182,7 +182,7 @@ class EncodingTest extends PHPUnit\Frame
+ $this->assertFalse(SimplePie_Misc::change_encoding('', 'TESTENC', 'UTF-8'));
+ }
+
+- public static function assertEquals($expected, $actual, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
++ public static function assertEquals($expected, $actual, string $message = '', float $delta = 0, int $maxDepth = 10, bool $canonicalize = false, bool $ignoreCase = false): void
+ {
+ if (is_string($expected))
+ {