Download src/php/php-src/ext/reflection/tests/021.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 233 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/021.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/reflection/tests/021.phpt
-
curl -L -o 021.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/021.phpt
233 Bytes
| --TEST-- | |
| ReflectionClass::hasConstant | |
| --FILE-- | |
| class Foo { | |
| const c1 = 1; | |
| } | |
| $class = new ReflectionClass("Foo"); | |
| var_dump($class->hasConstant("c1")); | |
| var_dump($class->hasConstant("c2")); | |
| --EXPECT-- | |
| bool(true) | |
| bool(false) | |