xref: /PHP-7.2/Zend/tests/inter_03.phpt (revision 17ccbeec)
1--TEST--
2Testing interface constants with inheritance
3--FILE--
4<?php
5
6interface a {
7	const b = 2;
8}
9
10interface b extends a {
11	const c = self::b;
12}
13
14var_dump(b::c, a::b);
15
16?>
17--EXPECT--
18int(2)
19int(2)
20