Implemented directory check

This commit is contained in:
Dennis Eichhorn 2016-11-11 20:52:24 +01:00
parent 09873a4dc3
commit 2053c7ba5d

View File

@ -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,
'<?php' . PHP_EOL
. '/**' . PHP_EOL