mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02: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 = 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('<div>value</div>');
|
$this->expectOutputString('value');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFetch()
|
public function testFetch()
|
||||||
@@ -383,6 +382,8 @@ 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