iliaa Wed Dec 11 12:38:29 2002 EDT
Added files:
/php4/ext/standard/tests/general_functions getopt.phpt
Log:
Added getopt() test.
Index: php4/ext/standard/tests/general_functions/getopt.phpt
+++ php4/ext/standard/tests/general_functions/getopt.phpt
--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)
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php