* Add unit test of file.

This commit is contained in:
liumengyi
2022-05-06 17:07:55 +08:00
parent 48d33a7564
commit fb9ef220fc
16 changed files with 954 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/file.class.php';
su('admin');
/**
title=测试 fileModel->setSavePath();
cid=1
pid=1
测试更新savePath >> /www/data/upload/1/
*/
$file = new fileTest();
r($file->setSavePathTest()) && p() && e('/www/data/upload/1/'); // 测试更新savePath