php-src/Zend/tests/inter_03.phpt
2008-03-12 13:01:59 +00:00

20 lines
201 B
PHP

--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)