php-src/tests/classes/interface_constant_inheritance_004.phpt
2018-10-14 19:46:15 +02:00

19 lines
251 B
PHP

--TEST--
Ensure a class may implement two interfaces which include the same constant (due to inheritance).
--FILE--
<?php
interface IA {
const FOO = 10;
}
interface IB extends IA {
}
class C implements IA, IB {
}
echo "Done\n";
?>
--EXPECT--
Done