Commit 2c35f79b authored by Felix Flor's avatar Felix Flor

customizied the export path for testfile. it's HOME/aphpanalyse now. if folder...

customizied the export path for testfile. it's HOME/aphpanalyse now. if folder doesn't exists, it will be created.
parent db911407
No preview for this file type
......@@ -111,8 +111,13 @@ function createSimpleTestFile(array $filesToCheck, string $template) : void {
$exportFileTemplate = str_replace('<NEEDEDCONSTANTS>', $neededConstants, $exportFileTemplate);
$exportFileTemplate = str_replace('<NEEDEDCLASSES>', $neededClasses, $exportFileTemplate);
file_put_contents("aphpanalyse.$fileExtensionPrefix.php", $exportFileTemplate);
$home = getenv("HOME");
echo "APHPAutoanalyse: Testfile create! (aphpanalyse.$fileExtensionPrefix.php)\n";
if(!file_exists("$home/aphpanalyse/"))
mkdir("$home/aphpanalyse/");
file_put_contents("$home/aphpanalyse/aphpanalyse.$fileExtensionPrefix.php", $exportFileTemplate);
echo "APHPAutoanalyse: Testfile create! ($home/aphpanalyse/aphpanalyse.$fileExtensionPrefix.php)\n";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment