File: 0005-Modernize-PHPUnit-syntax.patch

package info (click to toggle)
php-embed 4.4.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,728 kB
  • sloc: php: 40,309; makefile: 23
file content (31 lines) | stat: -rw-r--r-- 856 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Mon, 24 Feb 2025 19:11:42 +0100
Subject: Modernize PHPUnit syntax

---
 tests/FunctionsTest.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/FunctionsTest.php b/tests/FunctionsTest.php
index 8ec1eaa..736e430 100644
--- a/tests/FunctionsTest.php
+++ b/tests/FunctionsTest.php
@@ -4,6 +4,7 @@ declare(strict_types = 1);
 namespace Embed\Tests;
 
 use function Embed\isHttp;
+use PHPUnit\Framework\Attributes\DataProvider;
 use PHPUnit\Framework\TestCase;
 
 class FunctionsTest extends TestCase
@@ -24,9 +25,7 @@ class FunctionsTest extends TestCase
         ];
     }
 
-    /**
-     * @dataProvider urlsProvider
-     */
+    #[DataProvider('urlsProvider')]
     public function testIsHttp(string $url, bool $expected)
     {
         $result = isHttp($url);