mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
Test <?xml ?> tags in subtemplate
This commit is contained in:
@@ -69,6 +69,17 @@ class XmlTest extends PHPUnit_Smarty
|
|||||||
$content = $this->smarty->fetch('xml.tpl');
|
$content = $this->smarty->fetch('xml.tpl');
|
||||||
$this->assertEquals('<?xml version="1.0" encoding="UTF-8"?>', $content);
|
$this->assertEquals('<?xml version="1.0" encoding="UTF-8"?>', $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('<?xml version="1.0" encoding="UTF-8"?>', $content);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test xml caching PhpQuote
|
* test xml caching PhpQuote
|
||||||
|
@@ -0,0 +1 @@
|
|||||||
|
{include 'xml.tpl'}
|
Reference in New Issue
Block a user