xref: /php-src/Zend/tests/gh7792_3.phpt (revision 733023b2)
1--TEST--
2GH-7792 (Refer to enum as enum instead of class)
3--FILE--
4<?php
5
6interface A {
7    const FOO = 'foo';
8}
9
10interface B {
11    const FOO = 'foo';
12}
13
14enum Foo implements A, B {}
15
16?>
17--EXPECTF--
18Fatal error: Enum Foo inherits both A::FOO and B::FOO, which is ambiguous in %s on line %d
19