Download src/php/php-src/ext/reflection/tests/012.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 219 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/012.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/reflection/tests/012.phpt
-
curl -L -o 012.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/012.phpt
219 Bytes
| --TEST-- | |
| ReflectionClass::getDefaultProperties() | |
| --FILE-- | |
| class Foo { | |
| public $test = "ok"; | |
| } | |
| $class = new ReflectionClass("Foo"); | |
| $props = $class->getDefaultProperties(); | |
| echo $props["test"]; | |
| --EXPECT-- | |
| ok | |