dis-bench / src /php /php-src /Zend /tests /constants /class_constants_006.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
257 Bytes
--TEST--
Ownership of constant expression inherited from interface should be tranferred to class
--FILE--
<?php
interface I {
const X2 = 'X' . self::Y2;
const Y2 = 'Y';
}
eval('class B implements I{}');
var_dump(B::X2);
?>
--EXPECT--
string(2) "XY"