Download src/php/php-src/sapi/cli/tests/004.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/004.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/cli/tests/004.phpt
-
curl -L -o 004.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/004.phpt
565 Bytes
| --TEST-- | |
| show information about function | |
| --SKIPIF-- | |
| include "skipif.inc"; | |
| --FILE-- | |
| $php = getenv('TEST_PHP_EXECUTABLE_ESCAPED'); | |
| var_dump(`$php -n --rf unknown`); | |
| var_dump(`$php -n --rf echo`); | |
| var_dump(`$php -n --rf phpinfo`); | |
| echo "Done\n"; | |
| --EXPECT-- | |
| string(45) "Exception: Function unknown() does not exist | |
| " | |
| string(42) "Exception: Function echo() does not exist | |
| " | |
| string(155) "Function [ <internal:standard> function phpinfo ] { | |
| - Parameters [1] { | |
| Parameter #0 [ <optional> int $flags = INFO_ALL ] | |
| } | |
| - Return [ true ] | |
| } | |
| " | |
| Done | |