|
21 | 21 |
|
22 | 22 | final class FinderTest extends TestCase |
23 | 23 | { |
| 24 | + /** |
| 25 | + * @param int[]|string[] $data |
| 26 | + */ |
24 | 27 | #[DataProvider('firstDataProvider')] |
25 | 28 | public function testFirst(iterable $data, callable $filter, mixed $expected): void |
26 | 29 | { |
@@ -57,6 +60,9 @@ public static function firstDataProvider(): Iterator |
57 | 60 | ]; |
58 | 61 | } |
59 | 62 |
|
| 63 | + /** |
| 64 | + * @param int[]|string[] $data |
| 65 | + */ |
60 | 66 | #[DataProvider('firstReturnKeyDataProvider')] |
61 | 67 | public function testFirstReturnKey(iterable $data, callable $filter, mixed $expected): void |
62 | 68 | { |
@@ -93,6 +99,9 @@ public static function firstReturnKeyDataProvider(): Iterator |
93 | 99 | ]; |
94 | 100 | } |
95 | 101 |
|
| 102 | + /** |
| 103 | + * @param mixed[] $data |
| 104 | + */ |
96 | 105 | #[DataProvider('lastDataProvider')] |
97 | 106 | public function testLast(iterable $data, callable $filter, mixed $expected): void |
98 | 107 | { |
@@ -165,6 +174,9 @@ public static function lastDataProvider(): Iterator |
165 | 174 | ]; |
166 | 175 | } |
167 | 176 |
|
| 177 | + /** |
| 178 | + * @param mixed[] $data |
| 179 | + */ |
168 | 180 | #[DataProvider('lastReturnKeyDataProvider')] |
169 | 181 | public function testLastReturnKey(iterable $data, callable $filter, mixed $expected): void |
170 | 182 | { |
@@ -237,6 +249,9 @@ public static function lastReturnKeyDataProvider(): Iterator |
237 | 249 | ]; |
238 | 250 | } |
239 | 251 |
|
| 252 | + /** |
| 253 | + * @param int[] $data |
| 254 | + */ |
240 | 255 | #[DataProvider('lastReturnKeyResortKeyDataProvider')] |
241 | 256 | public function testLastReturnKeyResortKey(iterable $data, callable $filter, mixed $expected): void |
242 | 257 | { |
@@ -277,6 +292,7 @@ public function testLastKeepCurrentOriginalData(): void |
277 | 292 |
|
278 | 293 | /** |
279 | 294 | * @param array<int|string, int> $expected |
| 295 | + * @param array<int|string, int> $data |
280 | 296 | */ |
281 | 297 | #[DataProvider('rowsDataProvider')] |
282 | 298 | public function testRows(iterable $data, callable $filter, array $expected): void |
@@ -322,6 +338,7 @@ public static function rowsDataProvider(): Iterator |
322 | 338 |
|
323 | 339 | /** |
324 | 340 | * @param int[] $expected |
| 341 | + * @param int[] $data |
325 | 342 | */ |
326 | 343 | #[DataProvider('rowsDataProviderPreserveKey')] |
327 | 344 | public function testRowsPreserveKey(iterable $data, callable $filter, array $expected): void |
|
0 commit comments