diff options
Diffstat (limited to 'tools/TestGenerator.php')
-rw-r--r-- | tools/TestGenerator.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/TestGenerator.php b/tools/TestGenerator.php index 1d1be2d..d833463 100644 --- a/tools/TestGenerator.php +++ b/tools/TestGenerator.php @@ -158,9 +158,11 @@ class TestGenerator // Creating required directories to maintain the structure. // Ignoring errors if the folder structure exists already. - @mkdir($outputFile); - if ($debug !== null) { - @mkdir($debugFile); + if (!is_dir($outputFile)) { + mkdir($outputFile); + } + if (($debug !== null) && (!is_dir($debugFile))) { + mkdir($debugFile); } // Generating tests recursively. |