cvs: php4 /ext/standard/tests/general_functions getopt.phpt

From: Date: Wed, 11 Dec 2002 17:38:29 +0000
Subject: cvs: php4 /ext/standard/tests/general_functions getopt.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-17127@lists.php.net to get a copy of this message
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) }

« previous php.cvs (#17127) next »