Added getopt() test.

This commit is contained in:
Ilia Alshanetsky 2002-12-11 17:38:28 +00:00
parent 30f83207fe
commit c194d9333d

View file

@ -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)
}