From b1ffb59c3c82f2fe81c009d8377674082aac63db Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Tue, 7 Jul 2015 18:35:49 +0200 Subject: [PATCH] Update --- tests/Include_Path/Tpl/test5.tpl | 1 + .../ResourceTests/FileIncludePath/FileIncludePathTest.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/Include_Path/Tpl/test5.tpl diff --git a/tests/Include_Path/Tpl/test5.tpl b/tests/Include_Path/Tpl/test5.tpl new file mode 100644 index 00000000..a39b5e58 --- /dev/null +++ b/tests/Include_Path/Tpl/test5.tpl @@ -0,0 +1 @@ +include path root \ No newline at end of file diff --git a/tests/UnitTests/ResourceTests/FileIncludePath/FileIncludePathTest.php b/tests/UnitTests/ResourceTests/FileIncludePath/FileIncludePathTest.php index 34f1a78b..bdc55e49 100644 --- a/tests/UnitTests/ResourceTests/FileIncludePath/FileIncludePathTest.php +++ b/tests/UnitTests/ResourceTests/FileIncludePath/FileIncludePathTest.php @@ -58,7 +58,8 @@ class FileIncludePathTest extends PHPUnit_Smarty } public function testInclude5() { - $this->assertContains('include_test4', $this->smarty->fetch('test5.tpl')); + $this->smarty->setTemplateDir(array('./')); + $this->assertContains('include path root', $this->smarty->fetch('test5.tpl')); } }