function testOption()
 {
     $option = new \GetOptionKit\OptionResult();
     ok($option);
     $specs = new \GetOptionKit\OptionCollection();
     $specs->add('name:', 'name');
     $result = \GetOptionKit\OptionResult::create($specs, array('name' => 'c9s'), array('arg1'));
     ok($result);
     ok($result->arguments);
     ok($result->name);
     is('c9s', $result->name);
     is($result->arguments[0], 'arg1');
 }
Esempio n. 2
0
 /**
  * @param GetOptionKit\OptionCollection $opts
  */
 public function options($opts)
 {
     $opts->add('so|show-options', 'Show extension configure options');
     $opts->add('sp|show-path', 'Show extension config.m4 path');
 }