public function testHelpMessageOutputWorks()
 {
     $this->expectOutputString('Usage: test [command] [subcommand]' . "\n\n" . 'help: output global help (this) or subcommand help');
     $argv = array();
     $argv[0] = 'test';
     $argv[1] = 'help';
     $listings['providers'] = $this;
     $listings['subscribers'] = $this;
     $o = new Core_PartyCal($argv, $this, $listings, $this);
     $o->main();
     $this->assertTrue($this->configProviderListingCalled);
 }
예제 #2
0
 public function __construct($argv)
 {
     $this->helpString = _('basic client for viewing data in db and config');
     parent::__construct($argv);
 }