$directory =
$this->appDir . '/' . self::APP_NAME;
if (!
is_dir($directory)) { return;
} (new Filesystem())->
remove($directory);
} private function getCommandTester(): CommandTester
{ $appCreateCommand =
new CreateAppCommand($this->appLifecycle,
$this->appDir
);
$commandTester =
new CommandTester($appCreateCommand);
$application =
new Application();
$application->
add($appCreateCommand);
return $commandTester;
}}