--TEST-- Enum can use traits having constants --FILE-- shape() . PHP_EOL; echo Suit::Diamonds->shape() . PHP_EOL; echo Suit::Clubs->shape() . PHP_EOL; echo Suit::Spades->shape() . PHP_EOL; ?> --EXPECT-- Rectangle Rectangle Rectangle Rectangle