mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
单元测试修正
This commit is contained in:
@@ -73,7 +73,7 @@ class Build
|
||||
foreach ($list as $file) {
|
||||
if (!is_dir(APP_PATH . dirname($file))) {
|
||||
// 创建目录
|
||||
mkdir(APP_PATH . dirname($file), 0666, true);
|
||||
mkdir(APP_PATH . dirname($file), 0755, true);
|
||||
}
|
||||
if (!is_file(APP_PATH . $file)) {
|
||||
file_put_contents(APP_PATH . $file, 'php' == pathinfo($file, PATHINFO_EXTENSION) ? "<?php\n" : '');
|
||||
@@ -118,7 +118,7 @@ class Build
|
||||
foreach ($file as $dir) {
|
||||
if (!is_dir($modulePath . $dir)) {
|
||||
// 创建目录
|
||||
mkdir($modulePath . $dir, 0644, true);
|
||||
mkdir($modulePath . $dir, 0755, true);
|
||||
}
|
||||
}
|
||||
} elseif ('__file__' == $path) {
|
||||
@@ -146,7 +146,7 @@ class Build
|
||||
$filename = $modulePath . $path . DS . $val . '.html';
|
||||
if (!is_dir(dirname($filename))) {
|
||||
// 创建目录
|
||||
mkdir(dirname($filename), 0644, true);
|
||||
mkdir(dirname($filename), 0755, true);
|
||||
}
|
||||
$content = '';
|
||||
break;
|
||||
|
||||
@@ -79,7 +79,7 @@ class File extends SplFileObject
|
||||
return true;
|
||||
}
|
||||
|
||||
if (mkdir($path, 0666, true)) {
|
||||
if (mkdir($path, 0755, true)) {
|
||||
return true;
|
||||
} else {
|
||||
$this->error = "目录 {$path} 创建失败!";
|
||||
|
||||
@@ -25,7 +25,7 @@ class Make extends Command
|
||||
}
|
||||
|
||||
if (!is_dir(dirname($file))) {
|
||||
mkdir(strtolower(dirname($file)), 0644, true);
|
||||
mkdir(strtolower(dirname($file)), 0755, true);
|
||||
}
|
||||
|
||||
file_put_contents($file, $content);
|
||||
|
||||
@@ -26,7 +26,7 @@ class File
|
||||
// 检测模板目录
|
||||
$dir = dirname($cacheFile);
|
||||
if (!is_dir($dir)) {
|
||||
mkdir($dir, 0666, true);
|
||||
mkdir($dir, 0755, true);
|
||||
}
|
||||
// 生成模板缓存文件
|
||||
if (false === file_put_contents($cacheFile, $content)) {
|
||||
|
||||
Reference in New Issue
Block a user