public function setup()
{
$installDir = sys_get_temp_dir() . "/mageinstall";
if (is_readable($installDir)) {
$result = rmdir($installDir);
if (!$result) {
throw new RuntimeException(sprintf('Failed to remove temporary install dir %s', var_export($installDir)));
}
}
$this->installDir = $installDir;
}