D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel
/
ea-php83
/
root
/
usr
/
share
/
tests
/
pear
/
Console_Getopt
/
tests
/
Filename :
bug13140.phpt
back
Copy
--TEST-- Console_Getopt [bug 13140] --SKIPIF-- --FILE-- <?php $_SERVER['argv'] = $argv = array('--bob', '--foo' , '-bar', '--test', '-rq', 'thisshouldbehere'); require_once 'Console/Getopt.php'; $cg = new Console_GetOpt(); print_r($cg->getopt2($cg->readPHPArgv(), 't', array('test'), true)); print_r($cg->getopt2($cg->readPHPArgv(), 'bar', array('foo'), true)); ?> --EXPECT-- Array ( [0] => Array ( [0] => Array ( [0] => --test [1] => ) ) [1] => Array ( [0] => thisshouldbehere ) ) Array ( [0] => Array ( [0] => Array ( [0] => --foo [1] => ) [1] => Array ( [0] => b [1] => ) [2] => Array ( [0] => a [1] => ) [3] => Array ( [0] => r [1] => ) [4] => Array ( [0] => r [1] => ) ) [1] => Array ( [0] => thisshouldbehere ) )
Name
Size
Last Modified
Owner
Permissions
Actions
001-getopt.phpt
1.201
KB
January 03 2024 4:11:19
root
0644
bug10557.phpt
0.482
KB
January 03 2024 4:11:19
root
0644
bug11068.phpt
0.774
KB
January 03 2024 4:11:19
root
0644
bug13140.phpt
1.317
KB
January 03 2024 4:11:19
root
0644
2017 © D7net | D704T team