dis-bench / src /php /php-src /ext /reflection /tests /ReflectionClassConstant_isDeprecated_userland.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
261 Bytes
--TEST--
ReflectionClassConstant::isDeprecated() with userland constants.
--FILE--
<?php
class Clazz {
#[\Deprecated]
public const TEST = 'test';
}
$r = new ReflectionClassConstant('Clazz', 'TEST');
var_dump($r->isDeprecated());
?>
--EXPECTF--
bool(true)