xref: /PHP-8.1/Zend/tests/errmsg_025.phpt (revision a5360e80)
1--TEST--
2errmsg: cannot inherit previously inherited constant
3--FILE--
4<?php
5
6interface test1 {
7    const FOO = 10;
8}
9
10interface test2 {
11    const FOO = 10;
12}
13
14class test implements test1, test2 {
15}
16
17echo "Done\n";
18?>
19--EXPECTF--
20Fatal error: Class test inherits both test1::FOO and test2::FOO, which is ambiguous in %s on line %d
21