1--TEST--
2Auto implement UnitEnum interface
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8}
9
10class Baz {}
11
12var_dump(Foo::Bar instanceof UnitEnum);
13var_dump((new Baz()) instanceof UnitEnum);
14
15?>
16--EXPECT--
17bool(true)
18bool(false)
19