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