mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
修改测试文件
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
<div>{__CONTENT__}
|
<div>{__CONTENT__}</div>
|
||||||
</div>
|
|
||||||
@@ -318,13 +318,14 @@ EOF;
|
|||||||
{
|
{
|
||||||
$template = new Template();
|
$template = new Template();
|
||||||
$template->assign('name', 'name');
|
$template->assign('name', 'name');
|
||||||
|
$template->layout('layout');
|
||||||
$config = [
|
$config = [
|
||||||
'strip_space' => true,
|
'strip_space' => true,
|
||||||
'view_path' => dirname(__FILE__) . '/',
|
'view_path' => dirname(__FILE__) . '/',
|
||||||
];
|
];
|
||||||
$data = ['name' => 'value'];
|
$data = ['name' => 'value'];
|
||||||
$template->display('display', $data, $config);
|
$template->display('display', $data, $config);
|
||||||
$this->expectOutputString('value');
|
$this->expectOutputString('<div>value</div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFetch()
|
public function testFetch()
|
||||||
@@ -382,8 +383,6 @@ value:
|
|||||||
EOF;
|
EOF;
|
||||||
$template->fetch($content);
|
$template->fetch($content);
|
||||||
$this->expectOutputString($content2);
|
$this->expectOutputString($content2);
|
||||||
// $template->parse($content);
|
|
||||||
// var_dump($content);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testVarAssign()
|
public function testVarAssign()
|
||||||
|
|||||||
Reference in New Issue
Block a user