Download src/php/php-src/sapi/cli/tests/012.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 854 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/012.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/cli/tests/012.phpt
-
curl -L -o 012.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/012.phpt
854 Bytes
| --TEST-- | |
| invalid arguments and error messages | |
| --SKIPIF-- | |
| include "skipif.inc"; | |
| --FILE-- | |
| $php = getenv('TEST_PHP_EXECUTABLE_ESCAPED'); | |
| var_dump(`$php -n -F some.php -F some.php`); | |
| var_dump(`$php -n -F some.php -R some.php`); | |
| var_dump(`$php -n -R some.php -F some.php`); | |
| var_dump(`$php -n -R some.php -R some.php`); | |
| var_dump(`$php -n -f some.php -f some.php`); | |
| var_dump(`$php -n -B '' -B ''`); | |
| var_dump(`$php -n -E '' -E ''`); | |
| var_dump(`$php -n -r '' -r ''`); | |
| echo "Done\n"; | |
| --EXPECT-- | |
| string(32) "You can use -R or -F only once. | |
| " | |
| string(32) "You can use -R or -F only once. | |
| " | |
| string(32) "You can use -R or -F only once. | |
| " | |
| string(32) "You can use -R or -F only once. | |
| " | |
| string(26) "You can use -f only once. | |
| " | |
| string(26) "You can use -B only once. | |
| " | |
| string(26) "You can use -E only once. | |
| " | |
| string(26) "You can use -r only once. | |
| " | |
| Done | |