From: Ilia Alshanetsky Date: Wed, 11 Dec 2002 17:38:28 +0000 (+0000) Subject: Added getopt() test. X-Git-Tag: RELEASE_1_0b3~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c194d9333db2ed24733e69d0044ab7e97c77d600;p=php Added getopt() test. --- 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-- + +--FILE-- + +--EXPECT-- +array(5) { + ["v"]=> + bool(false) + ["h"]=> + bool(false) + ["d"]=> + string(4) "test" + ["m"]=> + string(4) "1234" + ["t"]=> + bool(false) +}