mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
修正测试文件
This commit is contained in:
@@ -249,8 +249,8 @@ EOF;
|
||||
|
||||
public function testTag()
|
||||
{
|
||||
$config['tpl_path'] = dirname(__FILE__) . '/';
|
||||
$config['tpl_suffix'] = '.html';
|
||||
$config['view_path'] = dirname(__FILE__) . '/';
|
||||
$config['view_suffix'] = '.html';
|
||||
$template = new Template($config);
|
||||
$files = ['extend' => 'extend', 'include' => 'include'];
|
||||
$template->assign('files', $files);
|
||||
@@ -351,7 +351,7 @@ EOF;
|
||||
$template->assign('name', 'name');
|
||||
$config = [
|
||||
'strip_space' => true,
|
||||
'tpl_path' => dirname(__FILE__) . '/',
|
||||
'view_path' => dirname(__FILE__) . '/',
|
||||
];
|
||||
$data = ['name' => 'value'];
|
||||
$template->display('display', $data, $config);
|
||||
@@ -361,7 +361,7 @@ EOF;
|
||||
public function testFetch()
|
||||
{
|
||||
$template = new Template();
|
||||
$template->tpl_path = dirname(__FILE__) . '/';
|
||||
$template->view_path = dirname(__FILE__) . '/';
|
||||
$data = ['name' => 'value'];
|
||||
$content = <<<EOF
|
||||
{\$name}
|
||||
|
||||
Reference in New Issue
Block a user