xref: /PHP-7.4/Zend/tests/errmsg_025.phpt (revision 7914d298)
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: Cannot inherit previously-inherited or override constant FOO from interface test2 in %s on line %d
21