Download src/php/php-src/ext/reflection/tests/017.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/017.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/reflection/tests/017.phpt
-
curl -L -o 017.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/017.phpt
398 Bytes
| --TEST-- | |
| ReflectionClass::__toString() (constants) | |
| --FILE-- | |
| class Foo { | |
| const test = "ok"; | |
| } | |
| $class = new ReflectionClass("Foo"); | |
| echo $class; | |
| --EXPECTF-- | |
| Class [ <user> class Foo ] { | |
| @@ %s017.php 2-4 | |
| - Constants [1] { | |
| Constant [ public string test ] { ok } | |
| } | |
| - Static properties [0] { | |
| } | |
| - Static methods [0] { | |
| } | |
| - Properties [0] { | |
| } | |
| - Methods [0] { | |
| } | |
| } | |