改进单元测试

This commit is contained in:
thinkphp
2016-08-05 21:10:04 +08:00
parent 8673d52548
commit bfa36913b9

View File

@@ -320,7 +320,7 @@ EOF;
$template->assign('name', 'name');
$config = [
'strip_space' => true,
'view_path' => dirname(__FILE__) . '/',
'view_path' => dirname(__FILE__) . DS,
'cache_id' => '__CACHE_ID__',
'display_cache' => true,
];
@@ -331,7 +331,7 @@ EOF;
public function testDisplay()
{
$config['view_path'] = dirname(__FILE__) . '/';
$config['view_path'] = dirname(__FILE__) . DS;
$config['view_suffix'] = '.html';
$config['layout_on'] = true;
$config['layout_name'] = 'layout';