diff --git a/tests/UnitTests/TemplateSource/Xml/XmlTest.php b/tests/UnitTests/TemplateSource/Xml/XmlTest.php index 93592154..9690a35c 100644 --- a/tests/UnitTests/TemplateSource/Xml/XmlTest.php +++ b/tests/UnitTests/TemplateSource/Xml/XmlTest.php @@ -69,6 +69,17 @@ class XmlTest extends PHPUnit_Smarty $content = $this->smarty->fetch('xml.tpl'); $this->assertEquals('', $content); } + /** + * test subtemplate xml caching + */ + public function testXmlCaching2() + { + $this->smarty->security_policy->php_handling = Smarty::PHP_PASSTHRU; + $this->smarty->caching = true; + $this->smarty->cache_lifetime = 1000; + $content = $this->smarty->fetch('xml_main.tpl'); + $this->assertEquals('', $content); + } /** * test xml caching PhpQuote diff --git a/tests/UnitTests/TemplateSource/Xml/templates/xml_main.tpl b/tests/UnitTests/TemplateSource/Xml/templates/xml_main.tpl new file mode 100644 index 00000000..578dc4b8 --- /dev/null +++ b/tests/UnitTests/TemplateSource/Xml/templates/xml_main.tpl @@ -0,0 +1 @@ +{include 'xml.tpl'} \ No newline at end of file