--TEST-- Backed Enum implements --FILE-- 'Red', self::Clubs, self::Spades => 'Black', }; } } echo Suit::Hearts->color() . "\n"; echo Suit::Diamonds->color() . "\n"; echo Suit::Clubs->color() . "\n"; echo Suit::Spades->color() . "\n"; ?> --EXPECT-- Red Red Black Black