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