/**
* Executor which runs a command.
*
* @param string $name
* @param array $args
*
* @return CommandTester
*/
protected function executeCommand(string $name, array $args = []) : CommandTester
{
$application = new Application($this->getKernel());
$tester = new CommandTester($application->get($name));
$tester->execute($args, ['interactive' => false]);
return $tester;
}