Skip to content

Commit 0adc1ca

Browse files
Update phpunit to version 12
1 parent 50b3e76 commit 0adc1ca

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"ext-intl": "*"
1717
},
1818
"require-dev": {
19-
"infection/infection": "^0.31.2",
19+
"infection/infection": "^0.31.9",
2020
"phpstan/phpstan": "^2.1",
21-
"phpunit/phpunit": "^11.5",
21+
"phpunit/phpunit": "^12.4",
2222
"doctrine/coding-standard": "^14.0",
2323
"phpstan/phpstan-strict-rules": "^2.0",
2424
"phpstan/phpstan-deprecation-rules": "^2.0"

tests/BuilderTest.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Budgegeria\IntlSort\Comparator\Comparable;
1010
use Budgegeria\IntlSort\ComparatorFactory\Factory;
1111
use Budgegeria\IntlSort\Sorter\Sorter;
12+
use PHPUnit\Framework\Attributes\DataProvider;
1213
use PHPUnit\Framework\TestCase;
1314

1415
class 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

Comments
 (0)