--TEST-- Enum supports __debugInfo() magic method --FILE-- name . ' is a case of the ' . __CLASS__ . ' enum']; } } var_dump(Foo::Bar); ?> --EXPECT-- enum(Foo::Bar) (1) { [0]=> string(29) "Bar is a case of the Foo enum" }