File: 0006-Drop-PHPUnit-compatibility-code.patch

package info (click to toggle)
php-phpseclib3 3.0.46-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,528 kB
  • sloc: php: 30,756; xml: 392; makefile: 21
file content (66 lines) | stat: -rw-r--r-- 2,330 bytes parent folder | download | duplicates (2)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Mon, 6 Mar 2023 08:16:37 +0100
Subject: Drop PHPUnit compatibility code

---
 tests/PhpseclibTestCase.php | 49 ---------------------------------------------
 1 file changed, 49 deletions(-)

diff --git a/tests/PhpseclibTestCase.php b/tests/PhpseclibTestCase.php
index f1739ba..3f00446 100644
--- a/tests/PhpseclibTestCase.php
+++ b/tests/PhpseclibTestCase.php
@@ -131,53 +131,4 @@ abstract class PhpseclibTestCase extends TestCase
         $method->setAccessible(true);
         return $method->invokeArgs($obj, $params);
     }
-
-    // assertIsArray was not introduced until PHPUnit 8
-    public static function assertIsArray($actual, $message = ''): void
-    {
-        parent::assertInternalType('array', $actual, $message);
-    }
-
-    // assertIsString was not introduced until PHPUnit 8
-    public static function assertIsString($actual, $message = ''): void
-    {
-        parent::assertInternalType('string', $actual, $message);
-    }
-
-    // assertIsResource was not introduced until PHPUnit 8
-    public static function assertIsResource($actual, $message = ''): void
-    {
-        parent::assertInternalType('resource', $actual, $message);
-    }
-
-    // assertIsObject was not introduced until PHPUnit 8
-    public static function assertIsObject($actual, $message = ''): void
-    {
-        parent::assertInternalType('object', $actual, $message);
-    }
-
-    // assertContains is deprecated for strings in PHPUnit 8
-    public static function assertStringContainsString($needle, $haystack, $message = ''): void
-    {
-        parent::assertContains($needle, $haystack, $message);
-    }
-
-    // assertNotContains is deprecated for strings in PHPUnit 8
-    public static function assertStringNotContainsString($needle, $haystack, $message = ''): void
-    {
-        parent::assertNotContains($needle, $haystack, $message);
-    }
-
-    /**
-     * assertRegExp() was deprecated in favor of assertMatchesRegularExpression().
-     *
-     * @param string $pattern
-     * @param string $string
-     * @param string $message
-     * @return void
-     */
-    public static function assertMatchesRegularExpression($pattern, $string, $message = ''): void
-    {
-        parent::assertRegExp($pattern, $string, $message);
-    }
 }