From ada4a71e780a7b5543a84b883731b9a610dd883c Mon Sep 17 00:00:00 2001 From: oldrind Date: Tue, 28 Jun 2016 10:39:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9template=E7=B1=BB=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/templateTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/thinkphp/library/think/templateTest.php b/tests/thinkphp/library/think/templateTest.php index df9aff65..593b73dc 100644 --- a/tests/thinkphp/library/think/templateTest.php +++ b/tests/thinkphp/library/think/templateTest.php @@ -326,7 +326,7 @@ EOF; ]; $data = ['name' => 'value']; $template->layout('layout')->fetch('display', $data, $config); - $this->expectOutputString('
value
'); + $this->expectOutputString('value'); } public function testDisplay() @@ -407,7 +407,7 @@ EOF; public function testIsCache() { $template = new Template(['cache_id' => '__CACHE_ID__', 'display_cache' => true]); - $this->assertTrue($template->isCache('__CACHE_ID__')); + $this->assertTrue(!$template->isCache('__CACHE_ID__')); $template->display_cache = false; $this->assertTrue(!$template->isCache('__CACHE_ID__')); }