1--TEST--
2Enum cases can be referenced by constants
3--FILE--
4<?php
5
6enum Foo {
7 case Bar;
8}
9
10const Beep = Foo::Bar;
11
12class Test {
13 const Beep = Foo::Bar;
14}
15
16var_dump(Beep);
17var_dump(Test::Beep);
18
19?>
20--EXPECT--
21enum(Foo::Bar)
22enum(Foo::Bar)
23