From 1aebbc88f465b44e206219e98a7de57ee78646e0 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 3 Mar 2025 12:43:01 +0100 Subject: [PATCH] [CLEANUP] Simplify a data provider Remove logic to make the data provider easier to grok. --- tests/Unit/Value/ValueTest.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/tests/Unit/Value/ValueTest.php b/tests/Unit/Value/ValueTest.php index 380a2ebb..ad7f5765 100644 --- a/tests/Unit/Value/ValueTest.php +++ b/tests/Unit/Value/ValueTest.php @@ -28,17 +28,12 @@ final class ValueTest extends TestCase */ public static function provideArithmeticOperator(): array { - $units = ['+', '-', '*', '/']; - - return \array_combine( - $units, - \array_map( - static function (string $unit): array { - return [$unit]; - }, - $units - ) - ); + return [ + '+' => ['+'], + '-' => ['-'], + '*' => ['*'], + '/' => ['/'], + ]; } /**