diff --git a/dev/Compilers/TestCompiler.php b/dev/Compilers/TestCompiler.php index 81d1d0c..94659a8 100644 --- a/dev/Compilers/TestCompiler.php +++ b/dev/Compilers/TestCompiler.php @@ -15,6 +15,7 @@ use Hoa\Compiler\Llk\TreeNode; use Major\PluralRules\Dev\Helpers as H; use Nette\PhpGenerator as Gen; +use PHPUnit\Framework\Attributes\DataProvider; use Psl\Str; use Psl\Vec; @@ -66,6 +67,7 @@ private function compileTests(string $locale, string $name, array $samples): str $namespace = $file->addNamespace('Major\\PluralRules\\Tests\\Locale') ->addUse(\Major\PluralRules\PluralRules::class) + ->addUse(\PHPUnit\Framework\Attributes\DataProvider::class) ->addUse(\PHPUnit\Framework\TestCase::class); $class = $namespace->addClass($name) @@ -93,7 +95,7 @@ public function compileTest( $providerName = H\camel('provide', $category, 'cases'); $test = $class->addMethod(H\camel('test', $category)) - ->addComment("@dataProvider {$providerName}") + ->addAttribute(DataProvider::class, [$providerName]) ->setReturnType('void') ->addBody('$category = PluralRules::select(?, $num);', [$locale]) ->addBody('$this->assertSame(?, $category);', [$category]); diff --git a/tests/Locale/AfTest.php b/tests/Locale/AfTest.php index 341ceeb..7d868ff 100644 --- a/tests/Locale/AfTest.php +++ b/tests/Locale/AfTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class AfTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('af', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('af', $num); diff --git a/tests/Locale/AkTest.php b/tests/Locale/AkTest.php index 58dd3c1..add8193 100644 --- a/tests/Locale/AkTest.php +++ b/tests/Locale/AkTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class AkTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ak', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ak', $num); diff --git a/tests/Locale/AmTest.php b/tests/Locale/AmTest.php index 76b1eba..fb68141 100644 --- a/tests/Locale/AmTest.php +++ b/tests/Locale/AmTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class AmTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('am', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('am', $num); diff --git a/tests/Locale/AnTest.php b/tests/Locale/AnTest.php index 0751633..3f7a51d 100644 --- a/tests/Locale/AnTest.php +++ b/tests/Locale/AnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class AnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('an', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('an', $num); diff --git a/tests/Locale/ArTest.php b/tests/Locale/ArTest.php index 64619ef..24f41cc 100644 --- a/tests/Locale/ArTest.php +++ b/tests/Locale/ArTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ArTest extends TestCase { - /** - * @dataProvider provideZeroCases - */ + #[DataProvider('provideZeroCases')] public function testZero(int|float|string $num): void { $category = PluralRules::select('ar', $num); @@ -30,9 +29,7 @@ public static function provideZeroCases(): array ]; } - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ar', $num); @@ -53,9 +50,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('ar', $num); @@ -76,9 +71,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('ar', $num); @@ -109,9 +102,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('ar', $num); @@ -141,9 +132,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ar', $num); diff --git a/tests/Locale/ArsTest.php b/tests/Locale/ArsTest.php index 1e6ca16..af377d4 100644 --- a/tests/Locale/ArsTest.php +++ b/tests/Locale/ArsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ArsTest extends TestCase { - /** - * @dataProvider provideZeroCases - */ + #[DataProvider('provideZeroCases')] public function testZero(int|float|string $num): void { $category = PluralRules::select('ars', $num); @@ -30,9 +29,7 @@ public static function provideZeroCases(): array ]; } - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ars', $num); @@ -53,9 +50,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('ars', $num); @@ -76,9 +71,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('ars', $num); @@ -109,9 +102,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('ars', $num); @@ -141,9 +132,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ars', $num); diff --git a/tests/Locale/AsTest.php b/tests/Locale/AsTest.php index db8bdbb..d9e3ba0 100644 --- a/tests/Locale/AsTest.php +++ b/tests/Locale/AsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class AsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('as', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('as', $num); diff --git a/tests/Locale/AsaTest.php b/tests/Locale/AsaTest.php index cc8ed8d..70d81f1 100644 --- a/tests/Locale/AsaTest.php +++ b/tests/Locale/AsaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class AsaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('asa', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('asa', $num); diff --git a/tests/Locale/AstTest.php b/tests/Locale/AstTest.php index 3d98292..505ed41 100644 --- a/tests/Locale/AstTest.php +++ b/tests/Locale/AstTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class AstTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ast', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ast', $num); diff --git a/tests/Locale/AzTest.php b/tests/Locale/AzTest.php index a1f4dcd..a8a1459 100644 --- a/tests/Locale/AzTest.php +++ b/tests/Locale/AzTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class AzTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('az', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('az', $num); diff --git a/tests/Locale/BalTest.php b/tests/Locale/BalTest.php index 1ffb4ef..7cd05b5 100644 --- a/tests/Locale/BalTest.php +++ b/tests/Locale/BalTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BalTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('bal', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('bal', $num); diff --git a/tests/Locale/BeTest.php b/tests/Locale/BeTest.php index a5df72a..a9a3b40 100644 --- a/tests/Locale/BeTest.php +++ b/tests/Locale/BeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('be', $num); @@ -45,9 +44,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('be', $num); @@ -86,9 +83,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('be', $num); @@ -125,9 +120,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('be', $num); diff --git a/tests/Locale/BemTest.php b/tests/Locale/BemTest.php index 4d07c6e..bd019f9 100644 --- a/tests/Locale/BemTest.php +++ b/tests/Locale/BemTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BemTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('bem', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('bem', $num); diff --git a/tests/Locale/BezTest.php b/tests/Locale/BezTest.php index 06129d8..b5336aa 100644 --- a/tests/Locale/BezTest.php +++ b/tests/Locale/BezTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BezTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('bez', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('bez', $num); diff --git a/tests/Locale/BgTest.php b/tests/Locale/BgTest.php index bea435c..d23fd17 100644 --- a/tests/Locale/BgTest.php +++ b/tests/Locale/BgTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BgTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('bg', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('bg', $num); diff --git a/tests/Locale/BhoTest.php b/tests/Locale/BhoTest.php index 776518c..91474c9 100644 --- a/tests/Locale/BhoTest.php +++ b/tests/Locale/BhoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BhoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('bho', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('bho', $num); diff --git a/tests/Locale/BloTest.php b/tests/Locale/BloTest.php index f398a90..6ba8f34 100644 --- a/tests/Locale/BloTest.php +++ b/tests/Locale/BloTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BloTest extends TestCase { - /** - * @dataProvider provideZeroCases - */ + #[DataProvider('provideZeroCases')] public function testZero(int|float|string $num): void { $category = PluralRules::select('blo', $num); @@ -30,9 +29,7 @@ public static function provideZeroCases(): array ]; } - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('blo', $num); @@ -53,9 +50,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('blo', $num); diff --git a/tests/Locale/BmTest.php b/tests/Locale/BmTest.php index b09b8c4..3dc8d1e 100644 --- a/tests/Locale/BmTest.php +++ b/tests/Locale/BmTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BmTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('bm', $num); diff --git a/tests/Locale/BnTest.php b/tests/Locale/BnTest.php index 508a210..7a07856 100644 --- a/tests/Locale/BnTest.php +++ b/tests/Locale/BnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('bn', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('bn', $num); diff --git a/tests/Locale/BoTest.php b/tests/Locale/BoTest.php index 2ff2417..0813beb 100644 --- a/tests/Locale/BoTest.php +++ b/tests/Locale/BoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BoTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('bo', $num); diff --git a/tests/Locale/BrTest.php b/tests/Locale/BrTest.php index 2a35b34..09c49a3 100644 --- a/tests/Locale/BrTest.php +++ b/tests/Locale/BrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('br', $num); @@ -43,9 +42,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('br', $num); @@ -79,9 +76,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('br', $num); @@ -121,9 +116,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('br', $num); @@ -144,9 +137,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('br', $num); diff --git a/tests/Locale/BrxTest.php b/tests/Locale/BrxTest.php index 2a8d9c6..70c27cb 100644 --- a/tests/Locale/BrxTest.php +++ b/tests/Locale/BrxTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BrxTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('brx', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('brx', $num); diff --git a/tests/Locale/BsTest.php b/tests/Locale/BsTest.php index 181172f..770a9b3 100644 --- a/tests/Locale/BsTest.php +++ b/tests/Locale/BsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class BsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('bs', $num); @@ -46,9 +45,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('bs', $num); @@ -91,9 +88,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('bs', $num); diff --git a/tests/Locale/CaTest.php b/tests/Locale/CaTest.php index e74ed01..e838247 100644 --- a/tests/Locale/CaTest.php +++ b/tests/Locale/CaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class CaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ca', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('ca', $num); @@ -45,9 +42,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ca', $num); diff --git a/tests/Locale/CeTest.php b/tests/Locale/CeTest.php index 435b9aa..b349486 100644 --- a/tests/Locale/CeTest.php +++ b/tests/Locale/CeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class CeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ce', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ce', $num); diff --git a/tests/Locale/CebTest.php b/tests/Locale/CebTest.php index b380d50..79f1c2f 100644 --- a/tests/Locale/CebTest.php +++ b/tests/Locale/CebTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class CebTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ceb', $num); @@ -60,9 +59,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ceb', $num); diff --git a/tests/Locale/CggTest.php b/tests/Locale/CggTest.php index 396e754..7f8d2d9 100644 --- a/tests/Locale/CggTest.php +++ b/tests/Locale/CggTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class CggTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('cgg', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('cgg', $num); diff --git a/tests/Locale/ChrTest.php b/tests/Locale/ChrTest.php index 69ee3e9..facf8f1 100644 --- a/tests/Locale/ChrTest.php +++ b/tests/Locale/ChrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ChrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('chr', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('chr', $num); diff --git a/tests/Locale/CkbTest.php b/tests/Locale/CkbTest.php index fc7ef6b..19dced8 100644 --- a/tests/Locale/CkbTest.php +++ b/tests/Locale/CkbTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class CkbTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ckb', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ckb', $num); diff --git a/tests/Locale/CsTest.php b/tests/Locale/CsTest.php index 1d76f1a..0aaad22 100644 --- a/tests/Locale/CsTest.php +++ b/tests/Locale/CsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class CsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('cs', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('cs', $num); @@ -46,9 +43,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('cs', $num); @@ -72,9 +67,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('cs', $num); diff --git a/tests/Locale/CyTest.php b/tests/Locale/CyTest.php index 2234538..dd3c30c 100644 --- a/tests/Locale/CyTest.php +++ b/tests/Locale/CyTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class CyTest extends TestCase { - /** - * @dataProvider provideZeroCases - */ + #[DataProvider('provideZeroCases')] public function testZero(int|float|string $num): void { $category = PluralRules::select('cy', $num); @@ -30,9 +29,7 @@ public static function provideZeroCases(): array ]; } - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('cy', $num); @@ -53,9 +50,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('cy', $num); @@ -76,9 +71,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('cy', $num); @@ -99,9 +92,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('cy', $num); @@ -122,9 +113,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('cy', $num); diff --git a/tests/Locale/DaTest.php b/tests/Locale/DaTest.php index 21f4332..9a59d93 100644 --- a/tests/Locale/DaTest.php +++ b/tests/Locale/DaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class DaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('da', $num); @@ -28,9 +27,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('da', $num); diff --git a/tests/Locale/DeTest.php b/tests/Locale/DeTest.php index 3cbfd03..383a907 100644 --- a/tests/Locale/DeTest.php +++ b/tests/Locale/DeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class DeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('de', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('de', $num); diff --git a/tests/Locale/DoiTest.php b/tests/Locale/DoiTest.php index 2858744..609d34d 100644 --- a/tests/Locale/DoiTest.php +++ b/tests/Locale/DoiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class DoiTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('doi', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('doi', $num); diff --git a/tests/Locale/DsbTest.php b/tests/Locale/DsbTest.php index a3f5276..1a7fee4 100644 --- a/tests/Locale/DsbTest.php +++ b/tests/Locale/DsbTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class DsbTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('dsb', $num); @@ -45,9 +44,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('dsb', $num); @@ -83,9 +80,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('dsb', $num); @@ -137,9 +132,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('dsb', $num); diff --git a/tests/Locale/DvTest.php b/tests/Locale/DvTest.php index 948eb14..5d0a878 100644 --- a/tests/Locale/DvTest.php +++ b/tests/Locale/DvTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class DvTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('dv', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('dv', $num); diff --git a/tests/Locale/DzTest.php b/tests/Locale/DzTest.php index 15eb842..7de447f 100644 --- a/tests/Locale/DzTest.php +++ b/tests/Locale/DzTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class DzTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('dz', $num); diff --git a/tests/Locale/EeTest.php b/tests/Locale/EeTest.php index 2aafc16..8568b14 100644 --- a/tests/Locale/EeTest.php +++ b/tests/Locale/EeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class EeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ee', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ee', $num); diff --git a/tests/Locale/ElTest.php b/tests/Locale/ElTest.php index a08a8c9..4909ba5 100644 --- a/tests/Locale/ElTest.php +++ b/tests/Locale/ElTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ElTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('el', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('el', $num); diff --git a/tests/Locale/EnTest.php b/tests/Locale/EnTest.php index 10a004f..8d45e9b 100644 --- a/tests/Locale/EnTest.php +++ b/tests/Locale/EnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class EnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('en', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('en', $num); diff --git a/tests/Locale/EoTest.php b/tests/Locale/EoTest.php index bc2ab3e..fbe5d32 100644 --- a/tests/Locale/EoTest.php +++ b/tests/Locale/EoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class EoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('eo', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('eo', $num); diff --git a/tests/Locale/EsTest.php b/tests/Locale/EsTest.php index 1e320e6..14bf060 100644 --- a/tests/Locale/EsTest.php +++ b/tests/Locale/EsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class EsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('es', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('es', $num); @@ -49,9 +46,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('es', $num); diff --git a/tests/Locale/EtTest.php b/tests/Locale/EtTest.php index 0153242..9f36193 100644 --- a/tests/Locale/EtTest.php +++ b/tests/Locale/EtTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class EtTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('et', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('et', $num); diff --git a/tests/Locale/EuTest.php b/tests/Locale/EuTest.php index 68953c2..ed281aa 100644 --- a/tests/Locale/EuTest.php +++ b/tests/Locale/EuTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class EuTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('eu', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('eu', $num); diff --git a/tests/Locale/FaTest.php b/tests/Locale/FaTest.php index 4d358cf..565a597 100644 --- a/tests/Locale/FaTest.php +++ b/tests/Locale/FaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class FaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('fa', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('fa', $num); diff --git a/tests/Locale/FfTest.php b/tests/Locale/FfTest.php index 005d39b..b89ff00 100644 --- a/tests/Locale/FfTest.php +++ b/tests/Locale/FfTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class FfTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ff', $num); @@ -29,9 +28,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ff', $num); diff --git a/tests/Locale/FiTest.php b/tests/Locale/FiTest.php index b81deab..443896d 100644 --- a/tests/Locale/FiTest.php +++ b/tests/Locale/FiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class FiTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('fi', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('fi', $num); diff --git a/tests/Locale/FilTest.php b/tests/Locale/FilTest.php index fe74ef9..2b32293 100644 --- a/tests/Locale/FilTest.php +++ b/tests/Locale/FilTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class FilTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('fil', $num); @@ -60,9 +59,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('fil', $num); diff --git a/tests/Locale/FoTest.php b/tests/Locale/FoTest.php index 668c72f..e1a58f4 100644 --- a/tests/Locale/FoTest.php +++ b/tests/Locale/FoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class FoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('fo', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('fo', $num); diff --git a/tests/Locale/FrTest.php b/tests/Locale/FrTest.php index 1c0fdc7..68f2656 100644 --- a/tests/Locale/FrTest.php +++ b/tests/Locale/FrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class FrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('fr', $num); @@ -29,9 +28,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('fr', $num); @@ -48,9 +45,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('fr', $num); diff --git a/tests/Locale/FurTest.php b/tests/Locale/FurTest.php index ba0b498..5e2f2a0 100644 --- a/tests/Locale/FurTest.php +++ b/tests/Locale/FurTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class FurTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('fur', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('fur', $num); diff --git a/tests/Locale/FyTest.php b/tests/Locale/FyTest.php index 513a85b..b08157f 100644 --- a/tests/Locale/FyTest.php +++ b/tests/Locale/FyTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class FyTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('fy', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('fy', $num); diff --git a/tests/Locale/GaTest.php b/tests/Locale/GaTest.php index 8b08aec..ca4f7c4 100644 --- a/tests/Locale/GaTest.php +++ b/tests/Locale/GaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class GaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ga', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('ga', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('ga', $num); @@ -89,9 +84,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('ga', $num); @@ -125,9 +118,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ga', $num); diff --git a/tests/Locale/GdTest.php b/tests/Locale/GdTest.php index be8a594..16b4c57 100644 --- a/tests/Locale/GdTest.php +++ b/tests/Locale/GdTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class GdTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('gd', $num); @@ -34,9 +33,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('gd', $num); @@ -61,9 +58,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('gd', $num); @@ -99,9 +94,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('gd', $num); diff --git a/tests/Locale/GlTest.php b/tests/Locale/GlTest.php index bb53320..a884c7d 100644 --- a/tests/Locale/GlTest.php +++ b/tests/Locale/GlTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class GlTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('gl', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('gl', $num); diff --git a/tests/Locale/GswTest.php b/tests/Locale/GswTest.php index 1943340..16e0155 100644 --- a/tests/Locale/GswTest.php +++ b/tests/Locale/GswTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class GswTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('gsw', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('gsw', $num); diff --git a/tests/Locale/GuTest.php b/tests/Locale/GuTest.php index e167458..4d55715 100644 --- a/tests/Locale/GuTest.php +++ b/tests/Locale/GuTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class GuTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('gu', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('gu', $num); diff --git a/tests/Locale/GuwTest.php b/tests/Locale/GuwTest.php index e77a6e2..400a2da 100644 --- a/tests/Locale/GuwTest.php +++ b/tests/Locale/GuwTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class GuwTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('guw', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('guw', $num); diff --git a/tests/Locale/GvTest.php b/tests/Locale/GvTest.php index 4c67f7b..0eb22b6 100644 --- a/tests/Locale/GvTest.php +++ b/tests/Locale/GvTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class GvTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('gv', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('gv', $num); @@ -63,9 +60,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('gv', $num); @@ -93,9 +88,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('gv', $num); @@ -119,9 +112,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('gv', $num); diff --git a/tests/Locale/HaTest.php b/tests/Locale/HaTest.php index 83ad073..ae1049c 100644 --- a/tests/Locale/HaTest.php +++ b/tests/Locale/HaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class HaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ha', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ha', $num); diff --git a/tests/Locale/HawTest.php b/tests/Locale/HawTest.php index c70fc81..23550bd 100644 --- a/tests/Locale/HawTest.php +++ b/tests/Locale/HawTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class HawTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('haw', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('haw', $num); diff --git a/tests/Locale/HeTest.php b/tests/Locale/HeTest.php index fa206d5..1241440 100644 --- a/tests/Locale/HeTest.php +++ b/tests/Locale/HeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class HeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('he', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('he', $num); @@ -49,9 +46,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('he', $num); diff --git a/tests/Locale/HiTest.php b/tests/Locale/HiTest.php index 1fc4ad2..82ad0fc 100644 --- a/tests/Locale/HiTest.php +++ b/tests/Locale/HiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class HiTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('hi', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('hi', $num); diff --git a/tests/Locale/HnjTest.php b/tests/Locale/HnjTest.php index 1deab80..bc0f6a8 100644 --- a/tests/Locale/HnjTest.php +++ b/tests/Locale/HnjTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class HnjTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('hnj', $num); diff --git a/tests/Locale/HrTest.php b/tests/Locale/HrTest.php index 78aab1c..905ede2 100644 --- a/tests/Locale/HrTest.php +++ b/tests/Locale/HrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class HrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('hr', $num); @@ -46,9 +45,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('hr', $num); @@ -91,9 +88,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('hr', $num); diff --git a/tests/Locale/HsbTest.php b/tests/Locale/HsbTest.php index e0ad76e..a499d38 100644 --- a/tests/Locale/HsbTest.php +++ b/tests/Locale/HsbTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class HsbTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('hsb', $num); @@ -45,9 +44,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('hsb', $num); @@ -83,9 +80,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('hsb', $num); @@ -137,9 +132,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('hsb', $num); diff --git a/tests/Locale/HuTest.php b/tests/Locale/HuTest.php index 880da94..655b218 100644 --- a/tests/Locale/HuTest.php +++ b/tests/Locale/HuTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class HuTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('hu', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('hu', $num); diff --git a/tests/Locale/HyTest.php b/tests/Locale/HyTest.php index 7bc921c..5ce3fd0 100644 --- a/tests/Locale/HyTest.php +++ b/tests/Locale/HyTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class HyTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('hy', $num); @@ -29,9 +28,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('hy', $num); diff --git a/tests/Locale/IaTest.php b/tests/Locale/IaTest.php index f342380..a15106b 100644 --- a/tests/Locale/IaTest.php +++ b/tests/Locale/IaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class IaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ia', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ia', $num); diff --git a/tests/Locale/IdTest.php b/tests/Locale/IdTest.php index b08b7a9..968cd57 100644 --- a/tests/Locale/IdTest.php +++ b/tests/Locale/IdTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class IdTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('id', $num); diff --git a/tests/Locale/IgTest.php b/tests/Locale/IgTest.php index 1b6001b..a9fecaa 100644 --- a/tests/Locale/IgTest.php +++ b/tests/Locale/IgTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class IgTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ig', $num); diff --git a/tests/Locale/IiTest.php b/tests/Locale/IiTest.php index 529aa78..9308e00 100644 --- a/tests/Locale/IiTest.php +++ b/tests/Locale/IiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class IiTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ii', $num); diff --git a/tests/Locale/IoTest.php b/tests/Locale/IoTest.php index f82cfeb..1db8e92 100644 --- a/tests/Locale/IoTest.php +++ b/tests/Locale/IoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class IoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('io', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('io', $num); diff --git a/tests/Locale/IsTest.php b/tests/Locale/IsTest.php index d3d7136..94ce986 100644 --- a/tests/Locale/IsTest.php +++ b/tests/Locale/IsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class IsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('is', $num); @@ -47,9 +46,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('is', $num); diff --git a/tests/Locale/ItTest.php b/tests/Locale/ItTest.php index 7481d3c..b05ebca 100644 --- a/tests/Locale/ItTest.php +++ b/tests/Locale/ItTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ItTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('it', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('it', $num); @@ -45,9 +42,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('it', $num); diff --git a/tests/Locale/IuTest.php b/tests/Locale/IuTest.php index 55d912b..fb985fb 100644 --- a/tests/Locale/IuTest.php +++ b/tests/Locale/IuTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class IuTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('iu', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('iu', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('iu', $num); diff --git a/tests/Locale/JaTest.php b/tests/Locale/JaTest.php index 8eb1ce8..975f11e 100644 --- a/tests/Locale/JaTest.php +++ b/tests/Locale/JaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class JaTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ja', $num); diff --git a/tests/Locale/JboTest.php b/tests/Locale/JboTest.php index cd3bd8c..b088c23 100644 --- a/tests/Locale/JboTest.php +++ b/tests/Locale/JboTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class JboTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('jbo', $num); diff --git a/tests/Locale/JgoTest.php b/tests/Locale/JgoTest.php index e8ac3cd..2a9c598 100644 --- a/tests/Locale/JgoTest.php +++ b/tests/Locale/JgoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class JgoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('jgo', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('jgo', $num); diff --git a/tests/Locale/JmcTest.php b/tests/Locale/JmcTest.php index 4f0d25a..340f96a 100644 --- a/tests/Locale/JmcTest.php +++ b/tests/Locale/JmcTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class JmcTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('jmc', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('jmc', $num); diff --git a/tests/Locale/JvTest.php b/tests/Locale/JvTest.php index 08e4bd1..c8f4f31 100644 --- a/tests/Locale/JvTest.php +++ b/tests/Locale/JvTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class JvTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('jv', $num); diff --git a/tests/Locale/JwTest.php b/tests/Locale/JwTest.php index 76309e4..0f3c66f 100644 --- a/tests/Locale/JwTest.php +++ b/tests/Locale/JwTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class JwTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('jw', $num); diff --git a/tests/Locale/KaTest.php b/tests/Locale/KaTest.php index 31f5a4d..7b2326c 100644 --- a/tests/Locale/KaTest.php +++ b/tests/Locale/KaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ka', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ka', $num); diff --git a/tests/Locale/KabTest.php b/tests/Locale/KabTest.php index 6c86b74..23d8ef5 100644 --- a/tests/Locale/KabTest.php +++ b/tests/Locale/KabTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KabTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('kab', $num); @@ -29,9 +28,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kab', $num); diff --git a/tests/Locale/KajTest.php b/tests/Locale/KajTest.php index 4efbaf8..9050997 100644 --- a/tests/Locale/KajTest.php +++ b/tests/Locale/KajTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KajTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('kaj', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kaj', $num); diff --git a/tests/Locale/KcgTest.php b/tests/Locale/KcgTest.php index ec574f6..5b0a90a 100644 --- a/tests/Locale/KcgTest.php +++ b/tests/Locale/KcgTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KcgTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('kcg', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kcg', $num); diff --git a/tests/Locale/KdeTest.php b/tests/Locale/KdeTest.php index fd558cc..c2072d5 100644 --- a/tests/Locale/KdeTest.php +++ b/tests/Locale/KdeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KdeTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kde', $num); diff --git a/tests/Locale/KeaTest.php b/tests/Locale/KeaTest.php index 5be8d94..9b46f64 100644 --- a/tests/Locale/KeaTest.php +++ b/tests/Locale/KeaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KeaTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kea', $num); diff --git a/tests/Locale/KkTest.php b/tests/Locale/KkTest.php index 74ff772..498a8c2 100644 --- a/tests/Locale/KkTest.php +++ b/tests/Locale/KkTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KkTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('kk', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kk', $num); diff --git a/tests/Locale/KkjTest.php b/tests/Locale/KkjTest.php index f136eca..8cff715 100644 --- a/tests/Locale/KkjTest.php +++ b/tests/Locale/KkjTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KkjTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('kkj', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kkj', $num); diff --git a/tests/Locale/KlTest.php b/tests/Locale/KlTest.php index b220871..4b4db8f 100644 --- a/tests/Locale/KlTest.php +++ b/tests/Locale/KlTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KlTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('kl', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kl', $num); diff --git a/tests/Locale/KmTest.php b/tests/Locale/KmTest.php index 6b54985..b60e982 100644 --- a/tests/Locale/KmTest.php +++ b/tests/Locale/KmTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KmTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('km', $num); diff --git a/tests/Locale/KnTest.php b/tests/Locale/KnTest.php index f862388..4202f99 100644 --- a/tests/Locale/KnTest.php +++ b/tests/Locale/KnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('kn', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kn', $num); diff --git a/tests/Locale/KoTest.php b/tests/Locale/KoTest.php index 8aa2b36..fddd2ab 100644 --- a/tests/Locale/KoTest.php +++ b/tests/Locale/KoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KoTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ko', $num); diff --git a/tests/Locale/KsTest.php b/tests/Locale/KsTest.php index c836ffe..55666a0 100644 --- a/tests/Locale/KsTest.php +++ b/tests/Locale/KsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ks', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ks', $num); diff --git a/tests/Locale/KsbTest.php b/tests/Locale/KsbTest.php index 7895958..3565477 100644 --- a/tests/Locale/KsbTest.php +++ b/tests/Locale/KsbTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KsbTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ksb', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ksb', $num); diff --git a/tests/Locale/KshTest.php b/tests/Locale/KshTest.php index f31d3a7..718b305 100644 --- a/tests/Locale/KshTest.php +++ b/tests/Locale/KshTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KshTest extends TestCase { - /** - * @dataProvider provideZeroCases - */ + #[DataProvider('provideZeroCases')] public function testZero(int|float|string $num): void { $category = PluralRules::select('ksh', $num); @@ -30,9 +29,7 @@ public static function provideZeroCases(): array ]; } - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ksh', $num); @@ -53,9 +50,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ksh', $num); diff --git a/tests/Locale/KuTest.php b/tests/Locale/KuTest.php index 57a1976..ce75e12 100644 --- a/tests/Locale/KuTest.php +++ b/tests/Locale/KuTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KuTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ku', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ku', $num); diff --git a/tests/Locale/KwTest.php b/tests/Locale/KwTest.php index 1ab4c46..783a2c2 100644 --- a/tests/Locale/KwTest.php +++ b/tests/Locale/KwTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KwTest extends TestCase { - /** - * @dataProvider provideZeroCases - */ + #[DataProvider('provideZeroCases')] public function testZero(int|float|string $num): void { $category = PluralRules::select('kw', $num); @@ -30,9 +29,7 @@ public static function provideZeroCases(): array ]; } - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('kw', $num); @@ -53,9 +50,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('kw', $num); @@ -93,9 +88,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('kw', $num); @@ -129,9 +122,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('kw', $num); @@ -165,9 +156,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('kw', $num); diff --git a/tests/Locale/KyTest.php b/tests/Locale/KyTest.php index 548e538..7dc851b 100644 --- a/tests/Locale/KyTest.php +++ b/tests/Locale/KyTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class KyTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ky', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ky', $num); diff --git a/tests/Locale/LagTest.php b/tests/Locale/LagTest.php index 75b7563..35fc389 100644 --- a/tests/Locale/LagTest.php +++ b/tests/Locale/LagTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class LagTest extends TestCase { - /** - * @dataProvider provideZeroCases - */ + #[DataProvider('provideZeroCases')] public function testZero(int|float|string $num): void { $category = PluralRules::select('lag', $num); @@ -30,9 +29,7 @@ public static function provideZeroCases(): array ]; } - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('lag', $num); @@ -51,9 +48,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('lag', $num); diff --git a/tests/Locale/LbTest.php b/tests/Locale/LbTest.php index b75a032..5697870 100644 --- a/tests/Locale/LbTest.php +++ b/tests/Locale/LbTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class LbTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('lb', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('lb', $num); diff --git a/tests/Locale/LgTest.php b/tests/Locale/LgTest.php index d577780..5aa05cf 100644 --- a/tests/Locale/LgTest.php +++ b/tests/Locale/LgTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class LgTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('lg', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('lg', $num); diff --git a/tests/Locale/LijTest.php b/tests/Locale/LijTest.php index 15932e6..06d14d8 100644 --- a/tests/Locale/LijTest.php +++ b/tests/Locale/LijTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class LijTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('lij', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('lij', $num); diff --git a/tests/Locale/LktTest.php b/tests/Locale/LktTest.php index 83c7c07..b85c9d7 100644 --- a/tests/Locale/LktTest.php +++ b/tests/Locale/LktTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class LktTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('lkt', $num); diff --git a/tests/Locale/LnTest.php b/tests/Locale/LnTest.php index 8f873ad..0394b8e 100644 --- a/tests/Locale/LnTest.php +++ b/tests/Locale/LnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class LnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ln', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ln', $num); diff --git a/tests/Locale/LoTest.php b/tests/Locale/LoTest.php index 348e553..8baee42 100644 --- a/tests/Locale/LoTest.php +++ b/tests/Locale/LoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class LoTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('lo', $num); diff --git a/tests/Locale/LtTest.php b/tests/Locale/LtTest.php index 12c5d25..2d64c26 100644 --- a/tests/Locale/LtTest.php +++ b/tests/Locale/LtTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class LtTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('lt', $num); @@ -45,9 +44,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('lt', $num); @@ -80,9 +77,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('lt', $num); @@ -105,9 +100,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('lt', $num); diff --git a/tests/Locale/LvTest.php b/tests/Locale/LvTest.php index d852d51..41a22d3 100644 --- a/tests/Locale/LvTest.php +++ b/tests/Locale/LvTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class LvTest extends TestCase { - /** - * @dataProvider provideZeroCases - */ + #[DataProvider('provideZeroCases')] public function testZero(int|float|string $num): void { $category = PluralRules::select('lv', $num); @@ -50,9 +49,7 @@ public static function provideZeroCases(): array ]; } - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('lv', $num); @@ -90,9 +87,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('lv', $num); diff --git a/tests/Locale/MasTest.php b/tests/Locale/MasTest.php index 14e28b0..8b62ca4 100644 --- a/tests/Locale/MasTest.php +++ b/tests/Locale/MasTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MasTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('mas', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('mas', $num); diff --git a/tests/Locale/MgTest.php b/tests/Locale/MgTest.php index c661936..cb54a83 100644 --- a/tests/Locale/MgTest.php +++ b/tests/Locale/MgTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MgTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('mg', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('mg', $num); diff --git a/tests/Locale/MgoTest.php b/tests/Locale/MgoTest.php index d30db7d..75bfbaf 100644 --- a/tests/Locale/MgoTest.php +++ b/tests/Locale/MgoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MgoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('mgo', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('mgo', $num); diff --git a/tests/Locale/MkTest.php b/tests/Locale/MkTest.php index afcb37b..8fe6ac2 100644 --- a/tests/Locale/MkTest.php +++ b/tests/Locale/MkTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MkTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('mk', $num); @@ -46,9 +45,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('mk', $num); diff --git a/tests/Locale/MlTest.php b/tests/Locale/MlTest.php index 109188f..23acb98 100644 --- a/tests/Locale/MlTest.php +++ b/tests/Locale/MlTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MlTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ml', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ml', $num); diff --git a/tests/Locale/MnTest.php b/tests/Locale/MnTest.php index c9133f2..07be2bb 100644 --- a/tests/Locale/MnTest.php +++ b/tests/Locale/MnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('mn', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('mn', $num); diff --git a/tests/Locale/MoTest.php b/tests/Locale/MoTest.php index cad6246..6b87685 100644 --- a/tests/Locale/MoTest.php +++ b/tests/Locale/MoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('mo', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('mo', $num); @@ -57,9 +54,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('mo', $num); diff --git a/tests/Locale/MrTest.php b/tests/Locale/MrTest.php index debbffb..431473b 100644 --- a/tests/Locale/MrTest.php +++ b/tests/Locale/MrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('mr', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('mr', $num); diff --git a/tests/Locale/MsTest.php b/tests/Locale/MsTest.php index dbbfae9..45a7fe3 100644 --- a/tests/Locale/MsTest.php +++ b/tests/Locale/MsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MsTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ms', $num); diff --git a/tests/Locale/MtTest.php b/tests/Locale/MtTest.php index 8f7ada0..1fe8549 100644 --- a/tests/Locale/MtTest.php +++ b/tests/Locale/MtTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MtTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('mt', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('mt', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('mt', $num); @@ -88,9 +83,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('mt', $num); @@ -121,9 +114,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('mt', $num); diff --git a/tests/Locale/MyTest.php b/tests/Locale/MyTest.php index 4fc06c3..4cb15da 100644 --- a/tests/Locale/MyTest.php +++ b/tests/Locale/MyTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class MyTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('my', $num); diff --git a/tests/Locale/NahTest.php b/tests/Locale/NahTest.php index 6cd6563..3b033d6 100644 --- a/tests/Locale/NahTest.php +++ b/tests/Locale/NahTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NahTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('nah', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nah', $num); diff --git a/tests/Locale/NaqTest.php b/tests/Locale/NaqTest.php index 05a4fcf..b1fa3c8 100644 --- a/tests/Locale/NaqTest.php +++ b/tests/Locale/NaqTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NaqTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('naq', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('naq', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('naq', $num); diff --git a/tests/Locale/NbTest.php b/tests/Locale/NbTest.php index 55d9819..d6b46ba 100644 --- a/tests/Locale/NbTest.php +++ b/tests/Locale/NbTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NbTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('nb', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nb', $num); diff --git a/tests/Locale/NdTest.php b/tests/Locale/NdTest.php index c1322e7..4d8810d 100644 --- a/tests/Locale/NdTest.php +++ b/tests/Locale/NdTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NdTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('nd', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nd', $num); diff --git a/tests/Locale/NeTest.php b/tests/Locale/NeTest.php index e3044ab..aa965de 100644 --- a/tests/Locale/NeTest.php +++ b/tests/Locale/NeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ne', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ne', $num); diff --git a/tests/Locale/NlTest.php b/tests/Locale/NlTest.php index 4a1cb68..e693193 100644 --- a/tests/Locale/NlTest.php +++ b/tests/Locale/NlTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NlTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('nl', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nl', $num); diff --git a/tests/Locale/NnTest.php b/tests/Locale/NnTest.php index 37f648d..d60a72f 100644 --- a/tests/Locale/NnTest.php +++ b/tests/Locale/NnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('nn', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nn', $num); diff --git a/tests/Locale/NnhTest.php b/tests/Locale/NnhTest.php index 1b49253..db6a51f 100644 --- a/tests/Locale/NnhTest.php +++ b/tests/Locale/NnhTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NnhTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('nnh', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nnh', $num); diff --git a/tests/Locale/NoTest.php b/tests/Locale/NoTest.php index d3e88d3..671c67b 100644 --- a/tests/Locale/NoTest.php +++ b/tests/Locale/NoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('no', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('no', $num); diff --git a/tests/Locale/NqoTest.php b/tests/Locale/NqoTest.php index 5afc08f..4c2c194 100644 --- a/tests/Locale/NqoTest.php +++ b/tests/Locale/NqoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NqoTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nqo', $num); diff --git a/tests/Locale/NrTest.php b/tests/Locale/NrTest.php index 59338b3..c95ffd5 100644 --- a/tests/Locale/NrTest.php +++ b/tests/Locale/NrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('nr', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nr', $num); diff --git a/tests/Locale/NsoTest.php b/tests/Locale/NsoTest.php index 8c6119a..cf61812 100644 --- a/tests/Locale/NsoTest.php +++ b/tests/Locale/NsoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NsoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('nso', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nso', $num); diff --git a/tests/Locale/NyTest.php b/tests/Locale/NyTest.php index 81f2293..047ae3c 100644 --- a/tests/Locale/NyTest.php +++ b/tests/Locale/NyTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NyTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ny', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ny', $num); diff --git a/tests/Locale/NynTest.php b/tests/Locale/NynTest.php index 8bf45de..efd7e8f 100644 --- a/tests/Locale/NynTest.php +++ b/tests/Locale/NynTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class NynTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('nyn', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('nyn', $num); diff --git a/tests/Locale/OmTest.php b/tests/Locale/OmTest.php index 02f2746..5e92fd4 100644 --- a/tests/Locale/OmTest.php +++ b/tests/Locale/OmTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class OmTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('om', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('om', $num); diff --git a/tests/Locale/OrTest.php b/tests/Locale/OrTest.php index b14764f..529684a 100644 --- a/tests/Locale/OrTest.php +++ b/tests/Locale/OrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class OrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('or', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('or', $num); diff --git a/tests/Locale/OsTest.php b/tests/Locale/OsTest.php index cd91d70..489bfcb 100644 --- a/tests/Locale/OsTest.php +++ b/tests/Locale/OsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class OsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('os', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('os', $num); diff --git a/tests/Locale/OsaTest.php b/tests/Locale/OsaTest.php index 2f26463..4de3797 100644 --- a/tests/Locale/OsaTest.php +++ b/tests/Locale/OsaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class OsaTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('osa', $num); diff --git a/tests/Locale/PaTest.php b/tests/Locale/PaTest.php index 6f3677b..85ea2f8 100644 --- a/tests/Locale/PaTest.php +++ b/tests/Locale/PaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class PaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('pa', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('pa', $num); diff --git a/tests/Locale/PapTest.php b/tests/Locale/PapTest.php index af3f8be..0a1c37a 100644 --- a/tests/Locale/PapTest.php +++ b/tests/Locale/PapTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class PapTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('pap', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('pap', $num); diff --git a/tests/Locale/PcmTest.php b/tests/Locale/PcmTest.php index 90a0a2a..92c431a 100644 --- a/tests/Locale/PcmTest.php +++ b/tests/Locale/PcmTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class PcmTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('pcm', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('pcm', $num); diff --git a/tests/Locale/PlTest.php b/tests/Locale/PlTest.php index e4227ef..523d8b5 100644 --- a/tests/Locale/PlTest.php +++ b/tests/Locale/PlTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class PlTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('pl', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('pl', $num); @@ -57,9 +54,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('pl', $num); @@ -83,9 +78,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('pl', $num); diff --git a/tests/Locale/PrgTest.php b/tests/Locale/PrgTest.php index a184d25..cfc6d4c 100644 --- a/tests/Locale/PrgTest.php +++ b/tests/Locale/PrgTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class PrgTest extends TestCase { - /** - * @dataProvider provideZeroCases - */ + #[DataProvider('provideZeroCases')] public function testZero(int|float|string $num): void { $category = PluralRules::select('prg', $num); @@ -50,9 +49,7 @@ public static function provideZeroCases(): array ]; } - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('prg', $num); @@ -90,9 +87,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('prg', $num); diff --git a/tests/Locale/PsTest.php b/tests/Locale/PsTest.php index 0086fb2..9903a19 100644 --- a/tests/Locale/PsTest.php +++ b/tests/Locale/PsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class PsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ps', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ps', $num); diff --git a/tests/Locale/PtPtTest.php b/tests/Locale/PtPtTest.php index cb0d650..82b7dcf 100644 --- a/tests/Locale/PtPtTest.php +++ b/tests/Locale/PtPtTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class PtPtTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('pt-PT', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('pt-PT', $num); @@ -45,9 +42,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('pt-PT', $num); diff --git a/tests/Locale/PtTest.php b/tests/Locale/PtTest.php index 1592f30..06ba95c 100644 --- a/tests/Locale/PtTest.php +++ b/tests/Locale/PtTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class PtTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('pt', $num); @@ -29,9 +28,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('pt', $num); @@ -48,9 +45,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('pt', $num); diff --git a/tests/Locale/RmTest.php b/tests/Locale/RmTest.php index a81127f..6c5aee5 100644 --- a/tests/Locale/RmTest.php +++ b/tests/Locale/RmTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class RmTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('rm', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('rm', $num); diff --git a/tests/Locale/RoTest.php b/tests/Locale/RoTest.php index 1c478ce..e57f00d 100644 --- a/tests/Locale/RoTest.php +++ b/tests/Locale/RoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class RoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ro', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('ro', $num); @@ -57,9 +54,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ro', $num); diff --git a/tests/Locale/RofTest.php b/tests/Locale/RofTest.php index 4481456..47ec7cd 100644 --- a/tests/Locale/RofTest.php +++ b/tests/Locale/RofTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class RofTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('rof', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('rof', $num); diff --git a/tests/Locale/RuTest.php b/tests/Locale/RuTest.php index 4e7a287..8993493 100644 --- a/tests/Locale/RuTest.php +++ b/tests/Locale/RuTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class RuTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ru', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('ru', $num); @@ -66,9 +63,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('ru', $num); @@ -92,9 +87,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ru', $num); diff --git a/tests/Locale/RwkTest.php b/tests/Locale/RwkTest.php index 0aa437a..4b82502 100644 --- a/tests/Locale/RwkTest.php +++ b/tests/Locale/RwkTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class RwkTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('rwk', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('rwk', $num); diff --git a/tests/Locale/SahTest.php b/tests/Locale/SahTest.php index 7b76a21..048afd9 100644 --- a/tests/Locale/SahTest.php +++ b/tests/Locale/SahTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SahTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sah', $num); diff --git a/tests/Locale/SaqTest.php b/tests/Locale/SaqTest.php index 8873022..1ecccbd 100644 --- a/tests/Locale/SaqTest.php +++ b/tests/Locale/SaqTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SaqTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('saq', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('saq', $num); diff --git a/tests/Locale/SatTest.php b/tests/Locale/SatTest.php index 5fc773f..0e9598d 100644 --- a/tests/Locale/SatTest.php +++ b/tests/Locale/SatTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SatTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sat', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('sat', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sat', $num); diff --git a/tests/Locale/ScTest.php b/tests/Locale/ScTest.php index 52c6f47..14fe7fd 100644 --- a/tests/Locale/ScTest.php +++ b/tests/Locale/ScTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ScTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sc', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sc', $num); diff --git a/tests/Locale/ScnTest.php b/tests/Locale/ScnTest.php index db339c3..9ffe379 100644 --- a/tests/Locale/ScnTest.php +++ b/tests/Locale/ScnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ScnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('scn', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('scn', $num); diff --git a/tests/Locale/SdTest.php b/tests/Locale/SdTest.php index 80b76e7..2b69165 100644 --- a/tests/Locale/SdTest.php +++ b/tests/Locale/SdTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SdTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sd', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sd', $num); diff --git a/tests/Locale/SdhTest.php b/tests/Locale/SdhTest.php index 570ee22..fe13ff3 100644 --- a/tests/Locale/SdhTest.php +++ b/tests/Locale/SdhTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SdhTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sdh', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sdh', $num); diff --git a/tests/Locale/SeTest.php b/tests/Locale/SeTest.php index 154ccd8..3feff1c 100644 --- a/tests/Locale/SeTest.php +++ b/tests/Locale/SeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('se', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('se', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('se', $num); diff --git a/tests/Locale/SehTest.php b/tests/Locale/SehTest.php index 9dfa065..8637baa 100644 --- a/tests/Locale/SehTest.php +++ b/tests/Locale/SehTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SehTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('seh', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('seh', $num); diff --git a/tests/Locale/SesTest.php b/tests/Locale/SesTest.php index 0d6dc21..d8f45eb 100644 --- a/tests/Locale/SesTest.php +++ b/tests/Locale/SesTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SesTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ses', $num); diff --git a/tests/Locale/SgTest.php b/tests/Locale/SgTest.php index 9dbfa16..b473842 100644 --- a/tests/Locale/SgTest.php +++ b/tests/Locale/SgTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SgTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sg', $num); diff --git a/tests/Locale/ShTest.php b/tests/Locale/ShTest.php index 876dac4..9dbca49 100644 --- a/tests/Locale/ShTest.php +++ b/tests/Locale/ShTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ShTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sh', $num); @@ -46,9 +45,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('sh', $num); @@ -91,9 +88,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sh', $num); diff --git a/tests/Locale/ShiTest.php b/tests/Locale/ShiTest.php index 9788d88..35f6004 100644 --- a/tests/Locale/ShiTest.php +++ b/tests/Locale/ShiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ShiTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('shi', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('shi', $num); @@ -67,9 +64,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('shi', $num); diff --git a/tests/Locale/SiTest.php b/tests/Locale/SiTest.php index 38bf229..6b87c18 100644 --- a/tests/Locale/SiTest.php +++ b/tests/Locale/SiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SiTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('si', $num); @@ -39,9 +38,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('si', $num); diff --git a/tests/Locale/SkTest.php b/tests/Locale/SkTest.php index b464037..0e9e0c5 100644 --- a/tests/Locale/SkTest.php +++ b/tests/Locale/SkTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SkTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sk', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('sk', $num); @@ -46,9 +43,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('sk', $num); @@ -72,9 +67,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sk', $num); diff --git a/tests/Locale/SlTest.php b/tests/Locale/SlTest.php index 201ada0..407c0c2 100644 --- a/tests/Locale/SlTest.php +++ b/tests/Locale/SlTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SlTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sl', $num); @@ -34,9 +33,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('sl', $num); @@ -61,9 +58,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('sl', $num); @@ -104,9 +99,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sl', $num); diff --git a/tests/Locale/SmaTest.php b/tests/Locale/SmaTest.php index ca6381f..b0067a0 100644 --- a/tests/Locale/SmaTest.php +++ b/tests/Locale/SmaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SmaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sma', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('sma', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sma', $num); diff --git a/tests/Locale/SmiTest.php b/tests/Locale/SmiTest.php index 8b323a8..93386c5 100644 --- a/tests/Locale/SmiTest.php +++ b/tests/Locale/SmiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SmiTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('smi', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('smi', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('smi', $num); diff --git a/tests/Locale/SmjTest.php b/tests/Locale/SmjTest.php index 95bf940..5875a91 100644 --- a/tests/Locale/SmjTest.php +++ b/tests/Locale/SmjTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SmjTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('smj', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('smj', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('smj', $num); diff --git a/tests/Locale/SmnTest.php b/tests/Locale/SmnTest.php index 0866d60..b8a63fe 100644 --- a/tests/Locale/SmnTest.php +++ b/tests/Locale/SmnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SmnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('smn', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('smn', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('smn', $num); diff --git a/tests/Locale/SmsTest.php b/tests/Locale/SmsTest.php index bce687e..aca4784 100644 --- a/tests/Locale/SmsTest.php +++ b/tests/Locale/SmsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SmsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sms', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideTwoCases - */ + #[DataProvider('provideTwoCases')] public function testTwo(int|float|string $num): void { $category = PluralRules::select('sms', $num); @@ -53,9 +50,7 @@ public static function provideTwoCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sms', $num); diff --git a/tests/Locale/SnTest.php b/tests/Locale/SnTest.php index ca7f385..89a2478 100644 --- a/tests/Locale/SnTest.php +++ b/tests/Locale/SnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sn', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sn', $num); diff --git a/tests/Locale/SoTest.php b/tests/Locale/SoTest.php index 2c4277b..7fd91ad 100644 --- a/tests/Locale/SoTest.php +++ b/tests/Locale/SoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('so', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('so', $num); diff --git a/tests/Locale/SqTest.php b/tests/Locale/SqTest.php index 923d5e5..c93a880 100644 --- a/tests/Locale/SqTest.php +++ b/tests/Locale/SqTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SqTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sq', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sq', $num); diff --git a/tests/Locale/SrTest.php b/tests/Locale/SrTest.php index c1b3e30..c09ae69 100644 --- a/tests/Locale/SrTest.php +++ b/tests/Locale/SrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sr', $num); @@ -46,9 +45,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('sr', $num); @@ -91,9 +88,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sr', $num); diff --git a/tests/Locale/SsTest.php b/tests/Locale/SsTest.php index d043317..fb2d2d0 100644 --- a/tests/Locale/SsTest.php +++ b/tests/Locale/SsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ss', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ss', $num); diff --git a/tests/Locale/SsyTest.php b/tests/Locale/SsyTest.php index c98d5ff..d6b06e8 100644 --- a/tests/Locale/SsyTest.php +++ b/tests/Locale/SsyTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SsyTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ssy', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ssy', $num); diff --git a/tests/Locale/StTest.php b/tests/Locale/StTest.php index cae5279..b67a75f 100644 --- a/tests/Locale/StTest.php +++ b/tests/Locale/StTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class StTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('st', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('st', $num); diff --git a/tests/Locale/SuTest.php b/tests/Locale/SuTest.php index c599fc0..c7d19db 100644 --- a/tests/Locale/SuTest.php +++ b/tests/Locale/SuTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SuTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('su', $num); diff --git a/tests/Locale/SvTest.php b/tests/Locale/SvTest.php index 08543d0..34f35f1 100644 --- a/tests/Locale/SvTest.php +++ b/tests/Locale/SvTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SvTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sv', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sv', $num); diff --git a/tests/Locale/SwTest.php b/tests/Locale/SwTest.php index 60805c1..889bba7 100644 --- a/tests/Locale/SwTest.php +++ b/tests/Locale/SwTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SwTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('sw', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('sw', $num); diff --git a/tests/Locale/SyrTest.php b/tests/Locale/SyrTest.php index c700cdc..a6c5c8b 100644 --- a/tests/Locale/SyrTest.php +++ b/tests/Locale/SyrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class SyrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('syr', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('syr', $num); diff --git a/tests/Locale/TaTest.php b/tests/Locale/TaTest.php index 4fa8391..dd656aa 100644 --- a/tests/Locale/TaTest.php +++ b/tests/Locale/TaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ta', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ta', $num); diff --git a/tests/Locale/TeTest.php b/tests/Locale/TeTest.php index 55a5a4b..891a465 100644 --- a/tests/Locale/TeTest.php +++ b/tests/Locale/TeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('te', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('te', $num); diff --git a/tests/Locale/TeoTest.php b/tests/Locale/TeoTest.php index dce9b73..79763c3 100644 --- a/tests/Locale/TeoTest.php +++ b/tests/Locale/TeoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TeoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('teo', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('teo', $num); diff --git a/tests/Locale/ThTest.php b/tests/Locale/ThTest.php index 02a21ab..dd80f20 100644 --- a/tests/Locale/ThTest.php +++ b/tests/Locale/ThTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ThTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('th', $num); diff --git a/tests/Locale/TiTest.php b/tests/Locale/TiTest.php index 1ece942..cd8fb18 100644 --- a/tests/Locale/TiTest.php +++ b/tests/Locale/TiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TiTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ti', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ti', $num); diff --git a/tests/Locale/TigTest.php b/tests/Locale/TigTest.php index ae4f620..e59ca6e 100644 --- a/tests/Locale/TigTest.php +++ b/tests/Locale/TigTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TigTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('tig', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('tig', $num); diff --git a/tests/Locale/TkTest.php b/tests/Locale/TkTest.php index 6516cc9..586763b 100644 --- a/tests/Locale/TkTest.php +++ b/tests/Locale/TkTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TkTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('tk', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('tk', $num); diff --git a/tests/Locale/TlTest.php b/tests/Locale/TlTest.php index 488caa8..a8eeb92 100644 --- a/tests/Locale/TlTest.php +++ b/tests/Locale/TlTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TlTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('tl', $num); @@ -60,9 +59,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('tl', $num); diff --git a/tests/Locale/TnTest.php b/tests/Locale/TnTest.php index c0a830d..065049f 100644 --- a/tests/Locale/TnTest.php +++ b/tests/Locale/TnTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TnTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('tn', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('tn', $num); diff --git a/tests/Locale/ToTest.php b/tests/Locale/ToTest.php index ce664f2..675ab4a 100644 --- a/tests/Locale/ToTest.php +++ b/tests/Locale/ToTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ToTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('to', $num); diff --git a/tests/Locale/TpiTest.php b/tests/Locale/TpiTest.php index dce008a..2c5ec0a 100644 --- a/tests/Locale/TpiTest.php +++ b/tests/Locale/TpiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TpiTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('tpi', $num); diff --git a/tests/Locale/TrTest.php b/tests/Locale/TrTest.php index 91bcd5c..2325fc8 100644 --- a/tests/Locale/TrTest.php +++ b/tests/Locale/TrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('tr', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('tr', $num); diff --git a/tests/Locale/TsTest.php b/tests/Locale/TsTest.php index 7bcabba..9a1338a 100644 --- a/tests/Locale/TsTest.php +++ b/tests/Locale/TsTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TsTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ts', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ts', $num); diff --git a/tests/Locale/TzmTest.php b/tests/Locale/TzmTest.php index a266331..5cec19b 100644 --- a/tests/Locale/TzmTest.php +++ b/tests/Locale/TzmTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class TzmTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('tzm', $num); @@ -45,9 +44,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('tzm', $num); diff --git a/tests/Locale/UgTest.php b/tests/Locale/UgTest.php index b11bd60..ea57faa 100644 --- a/tests/Locale/UgTest.php +++ b/tests/Locale/UgTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class UgTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ug', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ug', $num); diff --git a/tests/Locale/UkTest.php b/tests/Locale/UkTest.php index 36bff4a..9146c0a 100644 --- a/tests/Locale/UkTest.php +++ b/tests/Locale/UkTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class UkTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('uk', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideFewCases - */ + #[DataProvider('provideFewCases')] public function testFew(int|float|string $num): void { $category = PluralRules::select('uk', $num); @@ -66,9 +63,7 @@ public static function provideFewCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('uk', $num); @@ -92,9 +87,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('uk', $num); diff --git a/tests/Locale/UrTest.php b/tests/Locale/UrTest.php index b71b715..1b4a862 100644 --- a/tests/Locale/UrTest.php +++ b/tests/Locale/UrTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class UrTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ur', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ur', $num); diff --git a/tests/Locale/UzTest.php b/tests/Locale/UzTest.php index e7714b6..42427d4 100644 --- a/tests/Locale/UzTest.php +++ b/tests/Locale/UzTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class UzTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('uz', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('uz', $num); diff --git a/tests/Locale/VeTest.php b/tests/Locale/VeTest.php index d7f6291..10f2115 100644 --- a/tests/Locale/VeTest.php +++ b/tests/Locale/VeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class VeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('ve', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('ve', $num); diff --git a/tests/Locale/VecTest.php b/tests/Locale/VecTest.php index 3f2a4f9..625ad95 100644 --- a/tests/Locale/VecTest.php +++ b/tests/Locale/VecTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class VecTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('vec', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideManyCases - */ + #[DataProvider('provideManyCases')] public function testMany(int|float|string $num): void { $category = PluralRules::select('vec', $num); @@ -45,9 +42,7 @@ public static function provideManyCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('vec', $num); diff --git a/tests/Locale/ViTest.php b/tests/Locale/ViTest.php index b957d19..e23fde9 100644 --- a/tests/Locale/ViTest.php +++ b/tests/Locale/ViTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ViTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('vi', $num); diff --git a/tests/Locale/VoTest.php b/tests/Locale/VoTest.php index faf7fa1..f290e93 100644 --- a/tests/Locale/VoTest.php +++ b/tests/Locale/VoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class VoTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('vo', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('vo', $num); diff --git a/tests/Locale/VunTest.php b/tests/Locale/VunTest.php index a34f367..294b58f 100644 --- a/tests/Locale/VunTest.php +++ b/tests/Locale/VunTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class VunTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('vun', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('vun', $num); diff --git a/tests/Locale/WaTest.php b/tests/Locale/WaTest.php index 0f7a152..60d1f47 100644 --- a/tests/Locale/WaTest.php +++ b/tests/Locale/WaTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class WaTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('wa', $num); @@ -35,9 +34,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('wa', $num); diff --git a/tests/Locale/WaeTest.php b/tests/Locale/WaeTest.php index cdce50a..6532e98 100644 --- a/tests/Locale/WaeTest.php +++ b/tests/Locale/WaeTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class WaeTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('wae', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('wae', $num); diff --git a/tests/Locale/WoTest.php b/tests/Locale/WoTest.php index a961637..09f1fe5 100644 --- a/tests/Locale/WoTest.php +++ b/tests/Locale/WoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class WoTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('wo', $num); diff --git a/tests/Locale/XhTest.php b/tests/Locale/XhTest.php index d639c33..fdc230b 100644 --- a/tests/Locale/XhTest.php +++ b/tests/Locale/XhTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class XhTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('xh', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('xh', $num); diff --git a/tests/Locale/XogTest.php b/tests/Locale/XogTest.php index 3b06bea..4a79ba4 100644 --- a/tests/Locale/XogTest.php +++ b/tests/Locale/XogTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class XogTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('xog', $num); @@ -30,9 +29,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('xog', $num); diff --git a/tests/Locale/YiTest.php b/tests/Locale/YiTest.php index f7b82c3..5467ef7 100644 --- a/tests/Locale/YiTest.php +++ b/tests/Locale/YiTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class YiTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('yi', $num); @@ -26,9 +25,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('yi', $num); diff --git a/tests/Locale/YoTest.php b/tests/Locale/YoTest.php index fe6c371..7ad636a 100644 --- a/tests/Locale/YoTest.php +++ b/tests/Locale/YoTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class YoTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('yo', $num); diff --git a/tests/Locale/YueTest.php b/tests/Locale/YueTest.php index 9c1a05a..5f34f36 100644 --- a/tests/Locale/YueTest.php +++ b/tests/Locale/YueTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class YueTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('yue', $num); diff --git a/tests/Locale/ZhTest.php b/tests/Locale/ZhTest.php index 16692cf..f216f2d 100644 --- a/tests/Locale/ZhTest.php +++ b/tests/Locale/ZhTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ZhTest extends TestCase { - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('zh', $num); diff --git a/tests/Locale/ZuTest.php b/tests/Locale/ZuTest.php index 4990814..3ede17b 100644 --- a/tests/Locale/ZuTest.php +++ b/tests/Locale/ZuTest.php @@ -3,13 +3,12 @@ namespace Major\PluralRules\Tests\Locale; use Major\PluralRules\PluralRules; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; final class ZuTest extends TestCase { - /** - * @dataProvider provideOneCases - */ + #[DataProvider('provideOneCases')] public function testOne(int|float|string $num): void { $category = PluralRules::select('zu', $num); @@ -31,9 +30,7 @@ public static function provideOneCases(): array ]; } - /** - * @dataProvider provideOtherCases - */ + #[DataProvider('provideOtherCases')] public function testOther(int|float|string $num): void { $category = PluralRules::select('zu', $num);