aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/RichObjectStrings
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/RichObjectStrings')
-rw-r--r--tests/lib/RichObjectStrings/DefinitionsTest.php2
-rw-r--r--tests/lib/RichObjectStrings/ValidatorTest.php4
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/lib/RichObjectStrings/DefinitionsTest.php b/tests/lib/RichObjectStrings/DefinitionsTest.php
index 3b1db8fdc74..60ea820e844 100644
--- a/tests/lib/RichObjectStrings/DefinitionsTest.php
+++ b/tests/lib/RichObjectStrings/DefinitionsTest.php
@@ -31,10 +31,10 @@ class DefinitionsTest extends TestCase {
}
/**
- * @dataProvider dataGetDefinition
* @param string $type
* @param array $expected
*/
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataGetDefinition')]
public function testGetDefinition($type, array $expected): void {
$definitions = new Definitions();
$definition = $definitions->getDefinition($type);
diff --git a/tests/lib/RichObjectStrings/ValidatorTest.php b/tests/lib/RichObjectStrings/ValidatorTest.php
index c5f88394a33..26688d3401a 100644
--- a/tests/lib/RichObjectStrings/ValidatorTest.php
+++ b/tests/lib/RichObjectStrings/ValidatorTest.php
@@ -80,9 +80,7 @@ class ValidatorTest extends TestCase {
];
}
- /**
- * @dataProvider dataValidateParameterKeys
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataValidateParameterKeys')]
public function testValidateParameterKeys(mixed $key, ?string $throws): void {
if ($throws !== null) {