File: 0004-Drop-useless-compatibility-code-for-older-PHPUnit.patch

package info (click to toggle)
pdepend 2.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,000 kB
  • sloc: php: 60,009; xml: 1,423; makefile: 35; pascal: 34; sql: 34; sh: 8
file content (55 lines) | stat: -rw-r--r-- 1,983 bytes parent folder | download
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.
      *