Mercurial > hg > rc1
comparison vendor/pear/console_commandline/tests/console_commandline_parse_2.phpt @ 0:1e000243b222
vanilla 1.3.3 distro, I hope
author | Charlie Root |
---|---|
date | Thu, 04 Jan 2018 15:50:29 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1e000243b222 |
---|---|
1 --TEST-- | |
2 Test for Console_CommandLine::parse() method (--help). | |
3 --SKIPIF-- | |
4 <?php if(php_sapi_name()!='cli') echo 'skip'; ?> | |
5 --ARGS-- | |
6 --help 2>&1 | |
7 --FILE-- | |
8 <?php | |
9 | |
10 require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'tests.inc.php'; | |
11 | |
12 $parser = buildParser1(); | |
13 $parser->parse(); | |
14 | |
15 ?> | |
16 --EXPECT-- | |
17 Description of our parser goes here... | |
18 | |
19 Usage: | |
20 some_program [options] simple [multiple1 multiple2 ...] | |
21 | |
22 Options: | |
23 -t, --true test the StoreTrue action | |
24 -f, --false test the StoreFalse action | |
25 --int=INT test the StoreInt action | |
26 --float=FLOAT test the StoreFloat action | |
27 -s STRING, --string=STRING test the StoreString action | |
28 -c, --counter test the Counter action | |
29 --callback=callback test the Callback action | |
30 -a ARRAY, --array=ARRAY test the StoreArray action | |
31 -p password, --password=password test the Password action | |
32 -h, --help show this help message and exit | |
33 -v, --version show the program version and exit | |
34 | |
35 Arguments: | |
36 simple test a simple argument | |
37 multiple test a multiple argument |