hasNamedSubCommands() public method

Returns whether the command has any commands that are not anonymous.
See also: getNamedSubCommands()
public hasNamedSubCommands ( ) : boolean
return boolean Returns `true` if the command has named commands and `false` otherwise.
Esempio n. 1
0
 public function testHasNoNamedSubCommands()
 {
     $config = new CommandConfig('command');
     $subConfig = new SubCommandConfig('sub');
     $subConfig->markAnonymous();
     $config->addSubCommandConfig($subConfig);
     $command = new Command($config);
     $this->assertFalse($command->hasNamedSubCommands());
 }