hasCommand() public method

public hasCommand ( $name )
Ejemplo n.º 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'));
 }