aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Net/HostnameClassifierTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Net/HostnameClassifierTest.php')
-rw-r--r--tests/lib/Net/HostnameClassifierTest.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/lib/Net/HostnameClassifierTest.php b/tests/lib/Net/HostnameClassifierTest.php
index 5d80da01e46..c03afdabe83 100644
--- a/tests/lib/Net/HostnameClassifierTest.php
+++ b/tests/lib/Net/HostnameClassifierTest.php
@@ -32,9 +32,7 @@ class HostnameClassifierTest extends TestCase {
];
}
- /**
- * @dataProvider localHostnamesData
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('localHostnamesData')]
public function testLocalHostname(string $host): void {
$isLocal = $this->classifier->isLocalHostname($host);
@@ -51,9 +49,7 @@ class HostnameClassifierTest extends TestCase {
];
}
- /**
- * @dataProvider publicHostnamesData
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('publicHostnamesData')]
public function testPublicHostname(string $host): void {
$isLocal = $this->classifier->isLocalHostname($host);