Revert "修改测试文件"

This reverts commit 58d37604892442ddd04dc012fe6aa5ebcb2e152c.
This commit is contained in:
oldrind
2016-03-15 11:19:32 +08:00
parent 5d0c285004
commit 9c198f4de0
2 changed files with 5 additions and 3 deletions

View File

@@ -1 +1,2 @@
<div>{__CONTENT__}</div> <div>{__CONTENT__}
</div>

View File

@@ -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()