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);
|