Download src/php/php-src/ext/reflection/tests/ReflectionClassConstant_isDeprecated_userland.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/ReflectionClassConstant_isDeprecated_userland.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/reflection/tests/ReflectionClassConstant_isDeprecated_userland.phpt
-
curl -L -o ReflectionClassConstant_isDeprecated_userland.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/ReflectionClassConstant_isDeprecated_userland.phpt
261 Bytes
| --TEST-- | |
| ReflectionClassConstant::isDeprecated() with userland constants. | |
| --FILE-- | |
| class Clazz { | |
| public const TEST = 'test'; | |
| } | |
| $r = new ReflectionClassConstant('Clazz', 'TEST'); | |
| var_dump($r->isDeprecated()); | |
| --EXPECTF-- | |
| bool(true) | |