diff --git a/tests/thinkphp/library/think/layout.html b/tests/thinkphp/library/think/layout.html index 4ce233db..be8d4a07 100644 --- a/tests/thinkphp/library/think/layout.html +++ b/tests/thinkphp/library/think/layout.html @@ -1 +1,2 @@ -
{__CONTENT__}
\ No newline at end of file +
{__CONTENT__} +
\ No newline at end of file diff --git a/tests/thinkphp/library/think/templateTest.php b/tests/thinkphp/library/think/templateTest.php index 3fe28f39..9ba071b2 100644 --- a/tests/thinkphp/library/think/templateTest.php +++ b/tests/thinkphp/library/think/templateTest.php @@ -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('
value
'); + $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()