99use Budgegeria \IntlSort \Comparator \Comparable ;
1010use Budgegeria \IntlSort \ComparatorFactory \Factory ;
1111use Budgegeria \IntlSort \Sorter \Sorter ;
12+ use PHPUnit \Framework \Attributes \DataProvider ;
1213use PHPUnit \Framework \TestCase ;
1314
1415class BuilderTest extends TestCase
@@ -113,9 +114,8 @@ public function testEnableCaseLevel(): void
113114
114115 /**
115116 * @param string[] $values
116- *
117- * @dataProvider provideDisabledCaseLevelValues
118117 */
118+ #[DataProvider('provideDisabledCaseLevelValues ' )]
119119 public function testDisableCaseLevel (array $ values ): void
120120 {
121121 $ result = $ this ->builder
@@ -137,9 +137,8 @@ public static function provideDisabledCaseLevelValues(): iterable
137137
138138 /**
139139 * @param string[] $values
140- *
141- * @dataProvider providePrimaryStrengthValues
142140 */
141+ #[DataProvider('providePrimaryStrengthValues ' )]
143142 public function testPrimaryStrength (array $ values ): void
144143 {
145144 $ result = $ this ->builder
@@ -159,9 +158,8 @@ public static function providePrimaryStrengthValues(): iterable
159158
160159 /**
161160 * @param string[] $values
162- *
163- * @dataProvider provideSecondaryStrengthValues
164161 */
162+ #[DataProvider('provideSecondaryStrengthValues ' )]
165163 public function testSecondaryStrength (array $ values ): void
166164 {
167165 $ result = $ this ->builder
@@ -181,9 +179,8 @@ public static function provideSecondaryStrengthValues(): iterable
181179
182180 /**
183181 * @param string[] $values
184- *
185- * @dataProvider provideTertiaryStrengthValues
186182 */
183+ #[DataProvider('provideTertiaryStrengthValues ' )]
187184 public function testTertiaryStrength (array $ values ): void
188185 {
189186 $ result = $ this ->builder
@@ -206,9 +203,8 @@ public static function provideTertiaryStrengthValues(): iterable
206203 /**
207204 * @param string[] $values
208205 * @param string[] $expected
209- *
210- * @dataProvider provideQuarternaryStrengthValues
211206 */
207+ #[DataProvider('provideQuarternaryStrengthValues ' )]
212208 public function testQuarternaryStrength (array $ values , array $ expected ): void
213209 {
214210 $ result = $ this ->builder
0 commit comments