summaryrefslogtreecommitdiff
path: root/Zend/tests/inter_03.phpt
blob: 48c1b5eec2a107d8ef9faa56076c90b35e2268f8 (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)