Skip to content

Commit 239be7c

Browse files
committed
test: Fix PHPUnit deprecations
1 parent 93e3283 commit 239be7c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

tests/ExceptionTest.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ public function testRequestExceptions(string $exceptionClass, string $message, R
4040
$client->execute(['resource' => 'user', 'id' => 1337]);
4141
}
4242

43-
/**
44-
* @param string $exceptionClass
45-
* @dataProvider exceptionClassDataProvider
46-
*/
43+
#[PHPUnit\Framework\Attributes\DataProvider('exceptionClassDataProvider')]
4744
public function testExceptionBaseClass(string $exceptionClass): void
4845
{
4946
self::assertInstanceOf(FloraException::class, new $exceptionClass());

tests/ParameterTest.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ public function testOverwriteDefaultParameter(): void
148148
self::assertStringContainsString('portalId=4711', $request->getUri()->getQuery());
149149
}
150150

151-
/**
152-
* @param string $param
153-
* @dataProvider forceGetParamProvider
154-
*/
151+
#[PHPUnit\Framework\Attributes\DataProvider('forceGetParamProvider')]
155152
public function testDefaultGetParameters(string $param): void
156153
{
157154
$response = ResponseFactory::create()

0 commit comments

Comments
 (0)