aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Net
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Net')
-rw-r--r--tests/lib/Net/HostnameClassifierTest.php8
-rw-r--r--tests/lib/Net/IpAddressClassifierTest.php8
2 files changed, 4 insertions, 12 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);
diff --git a/tests/lib/Net/IpAddressClassifierTest.php b/tests/lib/Net/IpAddressClassifierTest.php
index be0b7e52fe0..f20e1ec1785 100644
--- a/tests/lib/Net/IpAddressClassifierTest.php
+++ b/tests/lib/Net/IpAddressClassifierTest.php
@@ -30,9 +30,7 @@ class IpAddressClassifierTest extends TestCase {
];
}
- /**
- * @dataProvider publicIpAddressData
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('publicIpAddressData')]
public function testPublicAddress(string $ip): void {
$isLocal = $this->classifier->isLocalAddress($ip);
@@ -54,9 +52,7 @@ class IpAddressClassifierTest extends TestCase {
];
}
- /**
- * @dataProvider localIpAddressData
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('localIpAddressData')]
public function testLocalAddress(string $ip): void {
$isLocal = $this->classifier->isLocalAddress($ip);