From c194d9333db2ed24733e69d0044ab7e97c77d600 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 11 Dec 2002 17:38:28 +0000 Subject: [PATCH] Added getopt() test. --- .../tests/general_functions/getopt.phpt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ext/standard/tests/general_functions/getopt.phpt 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) +} -- 2.50.1