diff --git a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php index f3261c67..8a23ba3d 100644 --- a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php +++ b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php @@ -312,6 +312,19 @@ class ConfigVarTest extends PHPUnit_Smarty $this->assertEquals("Welcome to Smarty!", $tpl->getConfigVars('title')); } + /** + * test getConfigVariable on template object + * + * @runInSeparateProcess + * @preserveGlobalState disabled + */ + public function testConfigGetSingleConfigVarTemplate2() + { + $tpl = $this->smarty->createTemplate('text.tpl'); + $tpl->configLoad('test.conf'); + $this->assertEquals("Welcome to Smarty!", $tpl->getConfigVariable('title')); + } + /** * test getConfigVars return all variables on template object *