Fake getopt cli options from in script.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to fake passing some CLI option that getup wold read to unit test a function. 
A stack overflow post from 7 years ago suggested setting the argc and argv $GLOBALS.
I've tried that but getup doesn't seem to see them. The register_argc_argv setting is off.

Is the 7yr old method still valid or is there another way to do it.

Thanks.

Ronald Fenner
Network Architect
Game Circus LLC.



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux