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