hasSubCommands() public method

Returns whether the command has any sub-commands.
public hasSubCommands ( ) : boolean
return boolean Returns `true` if the command has sub-commands and `false` otherwise.
コード例 #1
0
ファイル: CommandTest.php プロジェクト: webmozart/console
 public function testHasNoSubCommands()
 {
     $command = new Command(new CommandConfig('command'));
     $this->assertFalse($command->hasSubCommands());
 }