修复执行单元测试时,fast\Form重复定义的问题

pull/80/head
Chrisleung 2018-10-10 11:25:37 +08:00
parent 544222fabb
commit 2c366f06b3
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ class Common
\think\Cookie::set('think_var', $request->get('lang')); \think\Cookie::set('think_var', $request->get('lang'));
} }
// Form别名 // Form别名
class_alias('fast\\Form', 'Form'); if (!class_exists('Form')) {
class_alias('fast\\Form', 'Form');
}
} }
public function addonBegin(&$request) public function addonBegin(&$request)