Webmozart\Console\ConsoleApplication::hasNamedCommands PHP Method

hasNamedCommands() public method

public hasNamedCommands ( )
    public function hasNamedCommands()
    {
        return count($this->namedCommands) > 0;
    }

Usage Example

 public function testHasNoNamedCommands()
 {
     $config = new CommandConfig('command');
     $config->markAnonymous();
     $this->config->addCommandConfig($config);
     $application = new ConsoleApplication($this->config);
     $this->assertFalse($application->hasNamedCommands());
 }