mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-18 14:58:40 +00:00
Implemented directory check
This commit is contained in:
parent
09873a4dc3
commit
2053c7ba5d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user