File: 0002-Modernize-PHPUnit-syntax.patch

package info (click to toggle)
php-lorenzo-pinky 1.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 224 kB
  • sloc: php: 872; makefile: 10
file content (29 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (3)
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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Wed, 12 Mar 2025 06:37:07 +0100
Subject: Modernize PHPUnit syntax

---
 tests/EncodingTest.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/EncodingTest.php b/tests/EncodingTest.php
index d2ddbd7..68128e8 100644
--- a/tests/EncodingTest.php
+++ b/tests/EncodingTest.php
@@ -1,4 +1,5 @@
 <?php
+use PHPUnit\Framework\Attributes\DataProvider;
 use PHPUnit\Framework\TestCase;
 
 use function Pinky\transformString;
@@ -8,9 +9,8 @@ class EncodingTest extends TestCase
     /**
      * @param string $expected
      * @param string $input
-     *
-     * @dataProvider provideStrings
      */
+    #[DataProvider('provideStrings')]
     public function testMultiByteContent($expected, $input)
     {
         $this->assertEquals($expected, trim(transformString($input)->saveHTML()));