From ff46880ab465508c4f4176f57a530d50f838c94e Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 24 Apr 2016 14:39:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/templateTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/thinkphp/library/think/templateTest.php b/tests/thinkphp/library/think/templateTest.php index dad34f99..9b21028f 100644 --- a/tests/thinkphp/library/think/templateTest.php +++ b/tests/thinkphp/library/think/templateTest.php @@ -314,7 +314,7 @@ EOF; $this->assertEquals($data, $content); } - public function testDisplay() + public function testFetch() { $template = new Template(); $template->assign('name', 'name'); @@ -325,11 +325,11 @@ EOF; 'display_cache' => true, ]; $data = ['name' => 'value']; - $template->layout('layout')->display('display', $data, $config); + $template->layout('layout')->fetch('display', $data, $config); $this->expectOutputString('value'); } - public function testFetch() + public function testDisplay() { $config['view_path'] = dirname(__FILE__) . '/'; $config['view_suffix'] = '.html'; @@ -382,7 +382,7 @@ value: php code EOF; - $template->fetch($content); + $template->display($content); $this->expectOutputString($content2); // $template->parse($content); // var_dump($content);