diff --git a/tests/Integration/Normalizer/NormalizerTest.php b/tests/Integration/Normalizer/NormalizerTest.php index 4e8db14c..9b4ccb78 100644 --- a/tests/Integration/Normalizer/NormalizerTest.php +++ b/tests/Integration/Normalizer/NormalizerTest.php @@ -169,20 +169,22 @@ public function normalize_basic_values_yields_expected_output_data_provider(): i ], ]; - yield 'unit enum' => [ - 'input' => PureEnum::FOO, - 'expected' => 'FOO', - ]; - - yield 'backed string enum' => [ - 'input' => BackedStringEnum::FOO, - 'expected' => 'foo', - ]; - - yield 'backed integer enum' => [ - 'input' => BackedIntegerEnum::FOO, - 'expected' => 42, - ]; + if (PHP_VERSION_ID >= 8_01_00) { + yield 'unit enum' => [ + 'input' => PureEnum::FOO, + 'expected' => 'FOO', + ]; + + yield 'backed string enum' => [ + 'input' => BackedStringEnum::FOO, + 'expected' => 'foo', + ]; + + yield 'backed integer enum' => [ + 'input' => BackedIntegerEnum::FOO, + 'expected' => 42, + ]; + } yield 'class with public properties' => [ 'input' => new class () {