Download src/php/php-src/ext/reflection/tests/028.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/028.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/reflection/tests/028.phpt
-
curl -L -o 028.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/028.phpt
219 Bytes
| --TEST-- | |
| ReflectionGenerator::__construct() | |
| --FILE-- | |
| function foo() | |
| { | |
| yield 1; | |
| } | |
| $g = foo(); | |
| $g->next(); | |
| $r = new ReflectionGenerator($g); | |
| var_dump($r); | |
| --EXPECTF-- | |
| object(ReflectionGenerator)#%d (0) { | |
| } | |