Download src/php/php-src/tests/classes/autoload_002.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/autoload_002.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/classes/autoload_002.phpt
-
curl -L -o autoload_002.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/autoload_002.phpt
461 Bytes
| --TEST-- | |
| ZE2 Autoload and get_class_methods | |
| --SKIPIF-- | |
| if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); | |
| --FILE-- | |
| spl_autoload_register(function ($class_name) { | |
| require_once(__DIR__ . '/' . $class_name . '.inc'); | |
| echo 'autoload(' . $class_name . ")\n"; | |
| }); | |
| var_dump(get_class_methods('autoload_root')); | |
| --EXPECT-- | |
| autoload(autoload_root) | |
| array(1) { | |
| [0]=> | |
| string(12) "testFunction" | |
| } | |