diff --git a/testGenerator.php b/testGenerator.php index aad5361..ae57119 100644 --- a/testGenerator.php +++ b/testGenerator.php @@ -56,7 +56,10 @@ foreach ($files as $file) { $namespace = trim('Tests\PHPUnit\Framework\\' . trim(implode('\\', $namespace), '\\'), '\\'); $autoloader = str_repeat('/..', count(explode('\\', $namespace))); - mkdir(dirname($testPath), 0777, true); + if(!file_exists(dirname($testPAth))) { + mkdir(dirname($testPath), 0777, true); + } + file_put_contents($testPath, '