php-src/tests/classes/interface_constant_inheritance_004.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

18 lines
252 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