Webmozart\Console\ConsoleApplication::hasDefaultCommands PHP 메소드

hasDefaultCommands() 공개 메소드

public hasDefaultCommands ( )
    public function hasDefaultCommands()
    {
        return count($this->defaultCommands) > 0;
    }

Usage Example

예제 #1
0
 public function testHasNoDefaultCommands()
 {
     $this->config->addCommandConfig(new CommandConfig('command'));
     $application = new ConsoleApplication($this->config);
     $this->assertFalse($application->hasDefaultCommands());
 }