dis-bench / src /php /php-src /ext /reflection /tests /gh15902 /ReflectionProperty-callable.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
326 Bytes
--TEST--
ReflectionProperty object default - used to say "callable"
--INI--
opcache.enable_cli=0
--FILE--
<?php
class C {
public stdClass $a = FOO;
}
define('FOO', new stdClass);
new C;
$reflector = new ReflectionProperty(C::class, 'a');
echo $reflector;
?>
--EXPECTF--
Property [ public stdClass $a = object(stdClass) ]