hasCommand() 공개 메소드

public hasCommand ( $name )
예제 #1
0
 public function testHasCommand()
 {
     $this->config->addCommandConfig($config = new CommandConfig('command'));
     $application = new ConsoleApplication($this->config);
     $this->assertTrue($application->hasCommand('command'));
     $this->assertFalse($application->hasCommand('foobar'));
 }