Download src/php/php-src/ext/reflection/tests/010.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 352 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/010.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/reflection/tests/010.phpt
-
curl -L -o 010.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/010.phpt
352 Bytes
| --TEST-- | |
| ReflectionMethod::__toString() tests (overridden method) | |
| --FILE-- | |
| class Foo { | |
| function func() { | |
| } | |
| } | |
| class Bar extends Foo { | |
| function func() { | |
| } | |
| } | |
| $m = ReflectionMethod::createFromMethodName("Bar::func"); | |
| echo $m; | |
| --EXPECTF-- | |
| Method [ <user, overwrites Foo, prototype Foo> public method func ] { | |
| @@ %s010.php 7 - 8 | |
| } | |