summaryrefslogtreecommitdiffstats
path: root/php-simplepie-tests.patch
blob: 622a22d2fda2478f7eb51992395cca34d5856df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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))
 		{