blob: c91f4aa142f7fb17bf227ca41e7709a0e5b9970c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
Testing interface constants with inheritance
--FILE--
<?php
interface a {
const b = 2;
}
interface b extends a {
const c = self::b;
}
var_dump(b::c, a::b);
?>
--EXPECT--
int(2)
int(2)
|