1--TEST--
2ReflectionClassConstant::isEnumCase()
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8    const Baz = self::Bar;
9}
10
11class Qux {
12    const Quux = 0;
13}
14
15var_dump((new ReflectionClassConstant(Foo::class, 'Bar'))->isEnumCase());
16var_dump((new ReflectionClassConstant(Foo::class, 'Baz'))->isEnumCase());
17var_dump((new ReflectionClassConstant(Qux::class, 'Quux'))->isEnumCase());
18
19?>
20--EXPECT--
21bool(true)
22bool(false)
23bool(false)
24