Download src/php/php-src/ext/reflection/tests/003.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/003.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/reflection/tests/003.phpt
-
curl -L -o 003.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/003.phpt
342 Bytes
| --TEST-- | |
| ReflectionMethod::invoke() with base class method | |
| --FILE-- | |
| class Foo | |
| { | |
| function Test() | |
| { | |
| echo __METHOD__ . "\n"; | |
| } | |
| } | |
| class Bar extends Foo | |
| { | |
| function Test() | |
| { | |
| echo __METHOD__ . "\n"; | |
| } | |
| } | |
| $o = new Bar; | |
| $r = new ReflectionMethod('Foo','Test'); | |
| $r->invoke($o); | |
| --EXPECT-- | |
| Foo::Test | |