13
13
14
14
use ICanBoogie \Inflections ;
15
15
use ICanBoogie \InflectionsNotFound ;
16
+ use PHPUnit \Framework \Attributes \DataProvider ;
17
+ use PHPUnit \Framework \Attributes \Group ;
16
18
use PHPUnit \Framework \TestCase ;
17
19
18
20
use function ICanBoogie \pluralize ;
21
23
/**
22
24
* @group integration
23
25
*/
26
+ #[Group('integration ' )]
24
27
final class InflectionsTest extends TestCase
25
28
{
26
29
public function test_fail_on_undefined_inflections (): void
@@ -33,6 +36,7 @@ public function test_fail_on_undefined_inflections(): void
33
36
/**
34
37
* @dataProvider provide_singular_and_plural
35
38
*/
39
+ #[DataProvider('provide_singular_and_plural ' )]
36
40
public function test_singular_to_plural (string $ locale , string $ singular , string $ plural ): void
37
41
{
38
42
$ this ->assertEquals ($ plural , pluralize ($ singular , $ locale ));
@@ -41,13 +45,14 @@ public function test_singular_to_plural(string $locale, string $singular, string
41
45
/**
42
46
* @dataProvider provide_singular_and_plural
43
47
*/
48
+ #[DataProvider('provide_singular_and_plural ' )]
44
49
public function test_plural_to_singular (string $ locale , string $ singular , string $ plural ): void
45
50
{
46
51
$ this ->assertEquals ($ singular , singularize ($ plural , $ locale ));
47
52
}
48
53
49
54
// @phpstan-ignore-next-line
50
- public function provide_singular_and_plural (): array
55
+ public static function provide_singular_and_plural (): array
51
56
{
52
57
$ locales = explode (' ' , 'en es fr nb pt tr ' );
53
58
$ rc = [];
0 commit comments