diff options
| author | Anatol Belski <ab@php.net> | 2015-09-30 09:16:46 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2015-09-30 11:13:29 +0200 |
| commit | 59541795e2970425ff0318121f40fc4aacdb6b14 (patch) | |
| tree | a89715c6cb0837c89a2d3dbadc1ef330323d56ab /sapi/cgi | |
| parent | e80306cbe89c75e3cbedf526134b3c4bcc1d6082 (diff) | |
| download | php-git-59541795e2970425ff0318121f40fc4aacdb6b14.tar.gz | |
fork test
Diffstat (limited to 'sapi/cgi')
| -rw-r--r-- | sapi/cgi/tests/005-win32.phpt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sapi/cgi/tests/005-win32.phpt b/sapi/cgi/tests/005-win32.phpt new file mode 100644 index 0000000000..b7efb9b500 --- /dev/null +++ b/sapi/cgi/tests/005-win32.phpt @@ -0,0 +1,34 @@ +--TEST-- +using invalid combinations of cmdline options +--SKIPIF-- +<?php + +if (substr(PHP_OS, 0, 3) != 'WIN') { + die ("skip Windows only"); +} + +include "skipif.inc"; +?> +--FILE-- +<?php + +include "include.inc"; + +$php = get_cgi_path(); +reset_env_vars(); + +var_dump(`$php -n -a -f "wrong"`); +var_dump(`$php -n -f "wrong" -a`); + +echo "Done\n"; +?> +--EXPECTF-- +string(51) "Interactive mode enabled + +No input file specified. +" +string(51) "Interactive mode enabled + +No input file specified. +" +Done |
