@@ -435,6 +435,10 @@ static function (string $message) use (&$actualOutput): void {
435
435
*/
436
436
public function testAutoRemove (string $ file ): void
437
437
{
438
+ if (PHP_VERSION_ID < 8_01_00 ) {
439
+ self ::markTestSkipped ('Requires PHP 8.1 to test enum case removal ' );
440
+ }
441
+
438
442
$ writtenOutput = '' ;
439
443
440
444
$ output = $ this ->createOutput ();
@@ -718,11 +722,11 @@ public static function provideFiles(): Traversable
718
722
yield 'const-traits-23 ' => [__DIR__ . '/data/constants/traits-23.php ' ];
719
723
720
724
// enums
721
- yield 'enum-basic ' => [__DIR__ . '/data/enums/basic.php ' ];
722
- yield 'enum-mixed ' => [__DIR__ . '/data/enums/mixed.php ' ];
725
+ yield 'enum-basic ' => [__DIR__ . '/data/enums/basic.php ' , self :: requiresPhp ( 8_01_00 ) ];
726
+ yield 'enum-mixed ' => [__DIR__ . '/data/enums/mixed.php ' , self :: requiresPhp ( 8_01_00 ) ];
723
727
724
728
// mixed member
725
- yield 'mixed-member-enum ' => [__DIR__ . '/data/mixed-member/enum.php ' ];
729
+ yield 'mixed-member-enum ' => [__DIR__ . '/data/mixed-member/enum.php ' , self :: requiresPhp ( 8_01_00 ) ];
726
730
yield 'mixed-member-full-method ' => [__DIR__ . '/data/mixed-member/full-mixed-method.php ' ];
727
731
yield 'mixed-member-full-const ' => [__DIR__ . '/data/mixed-member/full-mixed-const.php ' ];
728
732
yield 'mixed-member-indirect-2 ' => [__DIR__ . '/data/mixed-member/indirect-interface-2.php ' ];
@@ -770,7 +774,8 @@ public static function provideFiles(): Traversable
770
774
yield 'mixed-member-const-traits-21 ' => [__DIR__ . '/data/mixed-member/traits-const-21.php ' ];
771
775
772
776
// other
773
- yield 'report-lines ' => [__DIR__ . '/data/other/report-lines.php ' ];
777
+ yield 'report-lines ' => [__DIR__ . '/data/other/report-lines.php ' , self ::requiresPhp (8_01_00 )];
778
+ yield 'identifiers ' => [__DIR__ . '/data/other/error-identifiers.php ' , self ::requiresPhp (8_01_00 )];
774
779
}
775
780
776
781
/**
0 commit comments