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')); } }