summaryrefslogtreecommitdiff
path: root/tests/classes/interface_constant_inheritance_004.phpt
blob: 359ce58b382a3bd31b8f4c9de2b384883e83a326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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