@@ -503,6 +503,10 @@ static function (string $message) use (&$actualOutput): void {
503
503
*/
504
504
public function testAutoRemove (string $ file ): void
505
505
{
506
+ if (PHP_VERSION_ID < 8_01_00 ) {
507
+ self ::markTestSkipped ('Requires PHP 8.1 to test enum case removal ' );
508
+ }
509
+
506
510
$ writtenOutput = '' ;
507
511
508
512
$ output = $ this ->createOutput ();
@@ -792,11 +796,11 @@ public static function provideFiles(): Traversable
792
796
yield 'const-traits-23 ' => [__DIR__ . '/data/constants/traits-23.php ' ];
793
797
794
798
// enums
795
- yield 'enum-basic ' => [__DIR__ . '/data/enums/basic.php ' ];
796
- yield 'enum-mixed ' => [__DIR__ . '/data/enums/mixed.php ' ];
799
+ yield 'enum-basic ' => [__DIR__ . '/data/enums/basic.php ' , self :: requiresPhp ( 8_01_00 ) ];
800
+ yield 'enum-mixed ' => [__DIR__ . '/data/enums/mixed.php ' , self :: requiresPhp ( 8_01_00 ) ];
797
801
798
802
// mixed member
799
- yield 'mixed-member-enum ' => [__DIR__ . '/data/mixed-member/enum.php ' ];
803
+ yield 'mixed-member-enum ' => [__DIR__ . '/data/mixed-member/enum.php ' , self :: requiresPhp ( 8_01_00 ) ];
800
804
yield 'mixed-member-full-method ' => [__DIR__ . '/data/mixed-member/full-mixed-method.php ' ];
801
805
yield 'mixed-member-full-const ' => [__DIR__ . '/data/mixed-member/full-mixed-const.php ' ];
802
806
yield 'mixed-member-indirect-2 ' => [__DIR__ . '/data/mixed-member/indirect-interface-2.php ' ];
@@ -845,7 +849,8 @@ public static function provideFiles(): Traversable
845
849
yield 'mixed-member-const-traits-21 ' => [__DIR__ . '/data/mixed-member/traits-const-21.php ' ];
846
850
847
851
// other
848
- yield 'report-lines ' => [__DIR__ . '/data/other/report-lines.php ' ];
852
+ yield 'report-lines ' => [__DIR__ . '/data/other/report-lines.php ' , self ::requiresPhp (8_01_00 )];
853
+ yield 'identifiers ' => [__DIR__ . '/data/other/error-identifiers.php ' , self ::requiresPhp (8_01_00 )];
849
854
}
850
855
851
856
/**
0 commit comments