view vendor/pear/console_commandline/tests/console_commandline_webrequest_2.phpt @ 38:ac106d4c8961 default tip

flip /etc/roundcube to point here
author Charlie Root
date Sat, 29 Dec 2018 05:39:53 -0500
parents 1e000243b222
children
line wrap: on
line source

--TEST--
Test for Console_CommandLine::parse() with a web request 2
--GET--
help
--FILE--
<?php

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'tests.inc.php';

$parser = buildParser1();
$parser->parse();

?>
--EXPECT--
Description of our parser goes here...

Usage:
  some_program [options] simple [multiple1 multiple2 ...]

Options:
  -t, --true                        test the StoreTrue action
  -f, --false                       test the StoreFalse action
  --int=INT                         test the StoreInt action
  --float=FLOAT                     test the StoreFloat action
  -s STRING, --string=STRING        test the StoreString action
  -c, --counter                     test the Counter action
  --callback=callback               test the Callback action
  -a ARRAY, --array=ARRAY           test the StoreArray action
  -p password, --password=password  test the Password action
  -h, --help                        show this help message and exit
  -v, --version                     show the program version and exit

Arguments:
  simple    test a simple argument
  multiple  test a multiple argument