File: 0003-Modernize-PHPUnit-syntax.patch

package info (click to toggle)
php-kissifrot-php-ixr 1.8.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 220 kB
  • sloc: php: 1,152; makefile: 25; xml: 21
file content (32 lines) | stat: -rw-r--r-- 874 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Tue, 11 Mar 2025 21:55:47 +0100
Subject: Modernize PHPUnit syntax

---
 tests/DataType/DateTest.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/DataType/DateTest.php b/tests/DataType/DateTest.php
index ea950ac..adb2755 100644
--- a/tests/DataType/DateTest.php
+++ b/tests/DataType/DateTest.php
@@ -3,6 +3,7 @@
 namespace IXR\tests\DataType;
 
 use IXR\DataType\Date;
+use PHPUnit\Framework\Attributes\DataProvider;
 use PHPUnit\Framework\TestCase;
 
 class DateTest extends TestCase
@@ -40,10 +41,10 @@ class DateTest extends TestCase
     }
 
     /**
-     * @dataProvider provideDates
      * @param mixed $input
      * @param int $expect
      */
+    #[DataProvider('provideDates')]
     static function testParseIso($input, $expect)
     {
         $dt = new Date($input);