update to 1.5.6

switch to phpunit7 and fix FTBFS with PHP 8
This commit is contained in:
Remi Collet 2021-03-23 16:17:45 +01:00
commit ba1d3000e3
4 changed files with 42 additions and 12 deletions

23
php-simplepie-tests.patch Normal file
View file

@ -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))
{