mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
20 lines
199 B
PHP
20 lines
199 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)
|