aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Net/IpAddressClassifierTest.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-06-30 16:56:59 +0200
committerRobin Appelman <robin@icewind.nl>2025-07-01 22:45:52 +0200
commitaa15f9d16d5b46d04763c7deedb129990e819364 (patch)
tree758e0aebcac34a545f9a21806120a9fcb96f4cb6 /tests/lib/Net/IpAddressClassifierTest.php
parent1620a0c0510a42b1da0a66488838f1ce3ba1210d (diff)
downloadnextcloud-server-rector-phpunit10.tar.gz
nextcloud-server-rector-phpunit10.zip
chore: run rectorrector-phpunit10
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Net/IpAddressClassifierTest.php')
-rw-r--r--tests/lib/Net/IpAddressClassifierTest.php8
1 files changed, 2 insertions, 6 deletions
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);