Skip to content

Commit cafd121

Browse files
authored
[CLEANUP] Simplify a data provider (#1054)
Remove logic to make the data provider easier to grok.
1 parent abcbb30 commit cafd121

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

tests/Unit/Value/ValueTest.php

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,12 @@ final class ValueTest extends TestCase
2828
*/
2929
public static function provideArithmeticOperator(): array
3030
{
31-
$units = ['+', '-', '*', '/'];
32-
33-
return \array_combine(
34-
$units,
35-
\array_map(
36-
static function (string $unit): array {
37-
return [$unit];
38-
},
39-
$units
40-
)
41-
);
31+
return [
32+
'+' => ['+'],
33+
'-' => ['-'],
34+
'*' => ['*'],
35+
'/' => ['/'],
36+
];
4237
}
4338

4439
/**

0 commit comments

Comments
 (0)