File: 0002-Don-t-override-now-final-TestCase-__construct.patch

package info (click to toggle)
php-parsedown 2.0.0~beta-1-5
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,036 kB
  • sloc: php: 4,260; xml: 38; makefile: 14
file content (59 lines) | stat: -rw-r--r-- 1,736 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
56
57
58
59
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Thu, 20 Feb 2025 08:57:08 +0100
Subject: =?utf-8?q?Don=E2=80=99t_override_now_final_TestCase=3A=3A=5F=5Fcon?=
 =?utf-8?q?struct=28=29?=

---
 tests/CommonMarkTestStrict.php | 15 ---------------
 tests/ParsedownTest.php        | 12 ------------
 2 files changed, 27 deletions(-)

diff --git a/tests/CommonMarkTestStrict.php b/tests/CommonMarkTestStrict.php
index fb0fa05..5e4bc8c 100644
--- a/tests/CommonMarkTestStrict.php
+++ b/tests/CommonMarkTestStrict.php
@@ -24,21 +24,6 @@ class CommonMarkTestStrict extends TestCase
     /** @var Parsedown */
     protected $Parsedown;
 
-    /**
-     * @param string|null $name
-     * @param array $data
-     * @param string $dataName
-     */
-    public function __construct($name = null, array $data = [], $dataName = '')
-    {
-        $this->Parsedown = new Parsedown(new State([
-            StrictMode::enabled(),
-            InlineTypes::initial()->removing([Url::class]),
-        ]));
-
-        parent::__construct($name, $data, $dataName);
-    }
-
     /**
      * @dataProvider data
      * @param int $_
diff --git a/tests/ParsedownTest.php b/tests/ParsedownTest.php
index e7cb075..f6a6d64 100755
--- a/tests/ParsedownTest.php
+++ b/tests/ParsedownTest.php
@@ -18,18 +18,6 @@ use PHPUnit\Framework\TestCase;
 
 class ParsedownTest extends TestCase
 {
-    /**
-     * @param string|null $name
-     * @param array $data
-     * @param string $dataName
-     */
-    final public function __construct($name = null, array $data = [], $dataName = '')
-    {
-        $this->dirs = $this->initDirs();
-
-        parent::__construct($name, $data, $dataName);
-    }
-
     /** @var string[]  */
     private $dirs;