File: 0005-Fix-PHPUnit-12-compatibility.patch

package info (click to toggle)
matthiasmullie-minify 1.3.73-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,140 kB
  • sloc: php: 3,198; javascript: 2,083; makefile: 38; xml: 27; sh: 6
file content (66 lines) | stat: -rw-r--r-- 1,898 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
60
61
62
63
64
65
66
From: Robin Gustafsson <robin@rgson.se>
Date: Sat, 20 Sep 2025 20:32:46 +0200
Subject: Fix PHPUnit 12 compatibility

---
 tests/CSS/CSSTest.php | 7 +++----
 tests/JS/JSTest.php   | 4 ++--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/tests/CSS/CSSTest.php b/tests/CSS/CSSTest.php
index 0046c4e..0e16239 100644
--- a/tests/CSS/CSSTest.php
+++ b/tests/CSS/CSSTest.php
@@ -3,6 +3,7 @@
 namespace MatthiasMullie\Minify\Tests\CSS;
 
 use MatthiasMullie\Minify\Tests\CompatTestCase;
+use PHPUnit\Framework\Attributes\DataProvider;
 
 /**
  * CSS minifier test case.
@@ -18,9 +19,8 @@ class CSSTest extends CompatTestCase
 
     /**
      * Test CSS minifier rules, provided by dataProvider.
-     *
-     * @dataProvider dataProvider
      */
+    #[DataProvider('dataProvider')]
     public function testMinify($input, $expected)
     {
         $minifier = $this->getMinifier();
@@ -31,9 +31,8 @@ class CSSTest extends CompatTestCase
 
     /**
      * Test conversion of relative paths, provided by dataProviderPaths.
-     *
-     * @dataProvider dataProviderPaths
      */
+    #[DataProvider('dataProviderPaths')]
     public function testConvertRelativePath($source, $target, $expected)
     {
         $minifier = $this->getMinifier();
diff --git a/tests/JS/JSTest.php b/tests/JS/JSTest.php
index 7e0e156..965744e 100644
--- a/tests/JS/JSTest.php
+++ b/tests/JS/JSTest.php
@@ -3,6 +3,7 @@
 namespace MatthiasMullie\Minify\Tests\JS;
 
 use MatthiasMullie\Minify\Tests\CompatTestCase;
+use PHPUnit\Framework\Attributes\DataProvider;
 
 /**
  * JS minifier test case.
@@ -42,9 +43,8 @@ class JSTest extends CompatTestCase
 
     /**
      * Test JS minifier rules, provided by dataProvider.
-     *
-     * @dataProvider dataProvider
      */
+    #[DataProvider('dataProvider')]
     public function testMinify($input, $expected)
     {
         $minifier = $this->getMinifier();