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