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);
- }
}
|