diff options
author | SVN Migration <svn@php.net> | 2002-12-11 17:38:29 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2002-12-11 17:38:29 +0000 |
commit | be0abad331e9529809380d2e89f1abe78ad17d3c (patch) | |
tree | 5d1bfa2ab4b4aa5bc0abe21bbd4412cad0b98fbc | |
parent | 47fa22b5cf1a21a7644bb839e94443008a0c1c14 (diff) | |
download | php-git-be0abad331e9529809380d2e89f1abe78ad17d3c.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
-rw-r--r-- | ext/standard/tests/general_functions/getopt.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/getopt.phpt b/ext/standard/tests/general_functions/getopt.phpt new file mode 100644 index 0000000000..11ba702488 --- /dev/null +++ b/ext/standard/tests/general_functions/getopt.phpt @@ -0,0 +1,27 @@ +--TEST-- +getopt +--ARGS-- +-v -h -d test -m 1234 -t -j +--SKIPIF-- +<?php + if (!ini_get('register_argc_argv')) { + die("skip this test needs register_argc_argv to be enabled"); + } +?> +--FILE-- +<?php + var_dump(getopt("d:m:j:vht")); +?> +--EXPECT-- +array(5) { + ["v"]=> + bool(false) + ["h"]=> + bool(false) + ["d"]=> + string(4) "test" + ["m"]=> + string(4) "1234" + ["t"]=> + bool(false) +} |