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
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Fri, 23 Aug 2019 20:32:04 -1000
Subject: Drop useless compatibility code for older PHPUnit
---
src/test/php/PDepend/AbstractTest.php | 36 -----------------------------------
1 file changed, 36 deletions(-)
diff --git a/src/test/php/PDepend/AbstractTest.php b/src/test/php/PDepend/AbstractTest.php
index f813ef5..de814b7 100644
--- a/src/test/php/PDepend/AbstractTest.php
+++ b/src/test/php/PDepend/AbstractTest.php
@@ -470,42 +470,6 @@ abstract class AbstractTest extends TestCase
self::assertEquals($graph, $actual);
}
- /**
- * Helper method to allow PHPUnit versions < 3.5.x
- *
- * @param string $expected The expected class or interface.
- * @param mixed $actual The actual variable/value.
- * @param string $message Optional error/fail message.
- *
- * @return void
- * @since 0.10.2
- */
- public static function assertInstanceOf($expected, $actual, $message = '')
- {
- if (is_callable(get_parent_class(__CLASS__) . '::') . __FUNCTION__) {
- return parent::assertInstanceOf($expected, $actual, $message);
- }
- return parent::assertType($expected, $actual, $message);
- }
-
- /**
- * Helper method to allow PHPUnit versions < 3.5.x
- *
- * @param string $expected The expected internal type.
- * @param mixed $actual The actual variable/value.
- * @param string $message Optional error/fail message.
- *
- * @return void
- * @since 0.10.2
- */
- public static function assertInternalType($expected, $actual, $message = '')
- {
- if (is_callable(get_parent_class(__CLASS__) . '::') . __FUNCTION__) {
- return parent::assertInternalType($expected, $actual, $message);
- }
- return parent::assertType($expected, $actual, $message);
- }
-
/**
* Creates a mocked class instance without calling the constructor.
*
|