1--TEST--
2Enum case is shown in stack trace
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8}
9
10function test($enum) {
11    throw new Exception();
12}
13
14test(Foo::Bar);
15
16?>
17--EXPECTF--
18Fatal error: Uncaught Exception in %s:%d
19Stack trace:
20#0 %s(%d): test(Foo::Bar)
21#1 {main}
22  thrown in %s on line %d
23