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