summaryrefslogtreecommitdiff
path: root/Zend/tests/inter_01.phpt
blob: 71c50c2595efb31e1ef8b5c379eeabccd47e0aed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Inherited constant from interface
--FILE--
<?php
interface foo {
    const foo = 'foobar';
    public function bar($x = foo);
}

class foobar implements foo {
    const foo = 'bar';
    public function bar($x = foo::foo) {
        var_dump($x);
    }
}
?>
--EXPECTF--
Fatal error: Cannot inherit previously-inherited or override constant foo from interface foo in %s on line %d