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