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')); }