xref: /PHP-7.3/Zend/tests/inter_03.phpt (revision 782352c5)
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