File: 0002-Support-phpunit-11.patch

package info (click to toggle)
php-dompdf-svg-lib 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 568 kB
  • sloc: php: 6,882; xml: 17; makefile: 12
file content (35 lines) | stat: -rw-r--r-- 1,137 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
From: Brian Sweeney <brian@eclecticgeek.com>
Date: Sat, 14 Dec 2024 13:48:33 -0500
Subject: Support phpunit 11

Origin: upstream
Forwarded: https://github.com/dompdf/php-svg-lib/commit/ee5bab8e99e99e493ed4d35a7f0e7efd09b748b6
---
 composer.json          | 2 +-
 tests/Svg/PathTest.php | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/composer.json b/composer.json
index 138cf86..4283ff4 100644
--- a/composer.json
+++ b/composer.json
@@ -26,6 +26,6 @@
     "horde/css-parser": "^1.0.11"
   },
   "require-dev": {
-    "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5"
+    "phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11"
   }
 }
diff --git a/tests/Svg/PathTest.php b/tests/Svg/PathTest.php
index 9a2348f..1cefcb9 100644
--- a/tests/Svg/PathTest.php
+++ b/tests/Svg/PathTest.php
@@ -76,6 +76,7 @@ final class PathTest extends TestCase
      * @param string $commandSequence
      * @param array $expected
      */
+    #[\PHPUnit\Framework\Attributes\DataProvider('commandProvider')]
     public function testParseCommands(string $commandSequence, array $expected)
     {
         $result = Path::parse($commandSequence);