From 978d7c88c54f8fb4419fc1b66543925193a1e5bc Mon Sep 17 00:00:00 2001 From: uwetews Date: Sat, 2 Jan 2016 02:12:31 +0100 Subject: [PATCH] update scope tests for {include} --- .../TemplateSource/TagTests/Include/CompileIncludeTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/UnitTests/TemplateSource/TagTests/Include/CompileIncludeTest.php b/tests/UnitTests/TemplateSource/TagTests/Include/CompileIncludeTest.php index 8eaf7fbc..e4468237 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Include/CompileIncludeTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/Include/CompileIncludeTest.php @@ -182,7 +182,7 @@ class CompileIncludeTest extends PHPUnit_Smarty { $this->smarty->setMergeCompiledIncludes($merge); $this->smarty->assign('foo', 1); - $tpl = $this->smarty->createTemplate('test_include_parent_scope.tpl', null, null, $this->smarty); + $tpl = $this->smarty->createTemplate('test_include_parent_scope.tpl', null, null, $this->smarty, false); $content = $this->smarty->fetch($tpl); $content2 = $this->smarty->fetch('eval: root value {$foo}'); $this->assertContains('before include 1', $content, 'before include 1 ' . $text); @@ -224,7 +224,7 @@ class CompileIncludeTest extends PHPUnit_Smarty $content2 = $this->smarty->fetch('eval: smarty value {$foo}'); $this->assertContains('before include 1', $content, 'before include 1 ' . $text); $this->assertContains('in include 2', $content . 'in include 2 ' . $text); - $this->assertContains('after include 1', $content, 'after include 1 ' . $text); + $this->assertContains('after include 2', $content, 'after include 1 ' . $text); $this->assertContains('smarty value 2', $content2, 'smarty value 2 ' . $text); }