From 66f127cab122ecfc82cbced8bc38aa59fa3bbbd5 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sat, 23 May 2015 18:49:46 +0200 Subject: [PATCH] New PHP tests --- .../TagTests/Php/CompilePhpTest.php | 336 +++++------------- ...4397e7d90726fff8d1b.phptag_nocache.tpl.php | 30 ++ ...4397e7d90726fff8d1b.phptag_nocache.tpl.php | 30 ++ ...4b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a.php | 29 ++ ...11c6408994a188fd91a8b55_0.file.asp.tpl.php | 32 ++ ...7a96358cd41f1ec6f6a646_0.file.php2.tpl.php | 32 ++ ...31b0ec710_0.file.php_block_comment.tpl.php | 44 +++ ...b927b218e9_0.file.php_line_comment.tpl.php | 40 +++ ...e51240577ffb56f79a23e11_0.file.php.tpl.php | 33 ++ ...5f99d0_0.file.phptag_block_comment.tpl.php | 44 +++ ...e4fd06d_0.file.phptag_line_comment.tpl.php | 40 +++ ...7e73e284304f_0.file.phptag_literal.tpl.php | 33 ++ ...eac335cac254cf56ee82_0.file.phptag.tpl.php | 33 ++ ...070f4da6115a337a26f4_0.file.script.tpl.php | 33 ++ ...11c6408994a188fd91a8b55_0.file.asp.tpl.php | 32 ++ ...7a96358cd41f1ec6f6a646_0.file.php2.tpl.php | 32 ++ ...31b0ec710_0.file.php_block_comment.tpl.php | 44 +++ ...b927b218e9_0.file.php_line_comment.tpl.php | 40 +++ ...e51240577ffb56f79a23e11_0.file.php.tpl.php | 33 ++ ...070f4da6115a337a26f4_0.file.script.tpl.php | 33 ++ ...11c6408994a188fd91a8b55_0.file.asp.tpl.php | 32 ++ ...7a96358cd41f1ec6f6a646_0.file.php2.tpl.php | 32 ++ ...31b0ec710_0.file.php_block_comment.tpl.php | 44 +++ ...b927b218e9_0.file.php_line_comment.tpl.php | 40 +++ ...e51240577ffb56f79a23e11_0.file.php.tpl.php | 33 ++ ...070f4da6115a337a26f4_0.file.script.tpl.php | 34 ++ ...11c6408994a188fd91a8b55_0.file.asp.tpl.php | 29 ++ ...7a96358cd41f1ec6f6a646_0.file.php2.tpl.php | 29 ++ ...31b0ec710_0.file.php_block_comment.tpl.php | 29 ++ ...b927b218e9_0.file.php_line_comment.tpl.php | 29 ++ ...e51240577ffb56f79a23e11_0.file.php.tpl.php | 29 ++ ...070f4da6115a337a26f4_0.file.script.tpl.php | 29 ++ ...2d87c805ebbab7b7d6da29ccc27ce_0.string.php | 30 ++ ...94b1714c54e1aaa409bf4e3e1ee75_0.string.php | 30 ++ ...f9a3d853a57f0078994f273337ee7_0.string.php | 30 ++ ...959c365fe4701b78db5d75e548b09_0.string.php | 30 ++ ...eccf490ddb11ddd80bc6a4ab0468d_0.string.php | 29 ++ ...197189a045b584e64eba30aeda3f7_0.string.php | 29 ++ ...f290f7f39f96ad5295f0d0db9dad5_0.string.php | 29 ++ ...4bcb8a4efdba500a5ac0a6e5405d5_0.string.php | 30 ++ ...ea2ae9496a1714bafe3c185466c14_0.string.php | 30 ++ ...69f19edd1fa756335f56a3c5a9e4e_0.string.php | 31 ++ ...4217b02427e3a7c1e45326a2f0b66_0.string.php | 31 ++ ...fb487a35898fa974eb20312e4bfb2_0.string.php | 31 ++ ...8c4054ff1b33b2b38fc6d68430bda_0.string.php | 29 ++ ...d05ab29afc80c279848839c11f167_0.string.php | 30 ++ ...cb759bbe71ce0c1fbc258de024673_0.string.php | 30 ++ ...dc1026f40d8eebad4520034abdc96_0.string.php | 29 ++ ...ad5ef94c6ce6927a1472d3e7ab89e_0.string.php | 29 ++ ...3b24cfa9a7b37355e0f5928788f8f_0.string.php | 29 ++ ...fcffdfa6ae4f31821fed01c952bcf_0.string.php | 29 ++ ...e1df8a2620858c2d29c29e857a6f4_0.string.php | 29 ++ ...758229c6aaa13dc090bf17f61e175_0.string.php | 30 ++ ...5c05c17fef29729290c8efe019ae5_0.string.php | 29 ++ ...ff8d1b_0.file.phptag_nocache.tpl.cache.php | 31 ++ ...ff8d1b_0.file.phptag_nocache.tpl.cache.php | 31 ++ ...bd1388b65cf1b4b85cddd0a_0.string.cache.php | 30 ++ ...f341691ba88b90a507252276ee805_0.string.php | 30 ++ ...9bae7d525db269cd4183cbabc96fb_0.string.php | 30 ++ ...c17c92272c3157227807e71b9b76b_0.string.php | 30 ++ ...a422029731c3b33e50227679f6a1a_0.string.php | 30 ++ ...323aaa436da454b9314d7392a12e8_0.string.php | 30 ++ 62 files changed, 2038 insertions(+), 249 deletions(-) create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache1^258487733f7ac8a0af3ec4397e7d90726fff8d1b.phptag_nocache.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache2^258487733f7ac8a0af3ec4397e7d90726fff8d1b.phptag_nocache.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache^334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a.334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_block_comment_tpl_^3f5a13ae129f09269eeb53e4d841f312f05f99d0_0.file.phptag_block_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_line_comment_tpl_^c6cabef8add2f0b2febbb09da07536088e4fd06d_0.file.phptag_line_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_literal_tpl_^b932f74b35fdacf8ea961eb2af527e73e284304f_0.file.phptag_literal.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_tpl_^6dc7afbc2f38d9fe48afeac335cac254cf56ee82_0.file.phptag.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_asp^147767a714e2d87c805ebbab7b7d6da29ccc27ce_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_asp^55e36bd9e4f94b1714c54e1aaa409bf4e3e1ee75_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php2^1642f89cbc7f9a3d853a57f0078994f273337ee7_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php2^f9ee56210d8959c365fe4701b78db5d75e548b09_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php3^fe80812fea5eccf490ddb11ddd80bc6a4ab0468d_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php4^7ecddd1e602197189a045b584e64eba30aeda3f7_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php^59db4e8155df290f7f39f96ad5295f0d0db9dad5_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_script^34b9d6451914bcb8a4efdba500a5ac0a6e5405d5_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_script^d63fdf19292ea2ae9496a1714bafe3c185466c14_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_asp^618ce7ae46169f19edd1fa756335f56a3c5a9e4e_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_php^dfd2ae57b814217b02427e3a7c1e45326a2f0b66_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_script^9ed2b318452fb487a35898fa974eb20312e4bfb2_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_asp^2050297339b8c4054ff1b33b2b38fc6d68430bda_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_php^55cd83958c8d05ab29afc80c279848839c11f167_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_php^a56eaa5d218cb759bbe71ce0c1fbc258de024673_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_script^e73aa3e4c45dc1026f40d8eebad4520034abdc96_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_asp^bd55cfdb2baad5ef94c6ce6927a1472d3e7ab89e_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_php^d95a7e705d03b24cfa9a7b37355e0f5928788f8f_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_script^c501e69e87dfcffdfa6ae4f31821fed01c952bcf_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag^ffb90734275e1df8a2620858c2d29c29e857a6f4_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Literal^9dbc9ad06b2758229c6aaa13dc090bf17f61e175_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Literal^afd558b7df25c05c17fef29729290c8efe019ae5_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache1^258487733f7ac8a0af3ec4397e7d90726fff8d1b_0.file.phptag_nocache.tpl.cache.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache2^258487733f7ac8a0af3ec4397e7d90726fff8d1b_0.file.phptag_nocache.tpl.cache.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache^334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a_0.string.cache.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_asp^769af836ce3f341691ba88b90a507252276ee805_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_asp_close^20e1c457e969bae7d525db269cd4183cbabc96fb_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_php^94bff756fd8c17c92272c3157227807e71b9b76b_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_php_close^95e5f93039ca422029731c3b33e50227679f6a1a_0.string.php create mode 100644 tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_script^db45d9a8f45323aaa436da454b9314d7392a12e8_0.string.php diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php b/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php index 2808e3b2..f2f84aaa 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php @@ -28,162 +28,29 @@ class CompilePhpTest extends PHPUnit_Smarty $this->cleanDirs(); } -/** - * test tag - * PHP_REMOVE - */ -public function testPHP_REMOVE_php() -{ - $this->smarty->setPhpHandling(Smarty::PHP_REMOVE); - $content = $this->smarty->fetch("string:ae"); - $this->assertEquals("a echo 'hello world'; e", $content, 'remove '); -} /** - * test <%...%> tag - * PHP_REMOVE + * Test + * @run inSeparateProcess + * @preserveGlobalState disabled + * @dataProvider data + * */ - public function testPHP_REMOVE_asp() + public function testPHP($phpHandling, $templateFile, $result, $testName) { - $this->smarty->setPhpHandling(Smarty::PHP_REMOVE); - $content = $this->smarty->fetch("string:a<% echo 'hello world';%>e"); - $this->assertEquals("a echo 'hello world';e", $content, 'remove <% %>'); - } - /** - * test tag - * PHP_REMOVE - */ - public function testPHP_REMOVE_script() - { - $this->smarty->setPhpHandling(Smarty::PHP_REMOVE); - $content = $this->smarty->fetch("string:ae"); - $this->assertEquals("a echo 'hello world';e", $content, "remove tag - * PHP_PASSTHRU - */ - public function testPHP_PASSTHRU_script() - { - $this->smarty->setPhpHandling(Smarty::PHP_PASSTHRU); - $content = $this->smarty->fetch("string:pape"); - $this->assertEquals("pape", $content, "passthru tag - * PHP_QUOTE - */ - public function testPHP_QUOTE_script() - { - $this->smarty->setPhpHandling(Smarty::PHP_QUOTE); - $content = $this->smarty->fetch("string:qaqe"); - $this->assertEquals("qa<script language='php'> echo 'hello world';</script>qe", $content, "quote tag - * PHP_ALLOW - */ - public function testPHP_ALLOW_script() - { - $this->smartyBC->setPhpHandling(Smarty::PHP_ALLOW); - $content = $this->smartyBC->fetch("string:aa ae"); - $this->assertEquals('aa hello world multiline ae', $content, "allow <--', 'PHP_ALLOW, \'script.tpl\''), + array(Smarty::PHP_ALLOW, 'phptag.tpl', '--> hello world {php} {/php} <--', 'PHP_ALLOW, \'phptag.tpl\''), + array(Smarty::PHP_ALLOW, 'phptag_line_comment.tpl', '--> hello world {php} {/php} <--', 'PHP_ALLOW, \'phptag_line_comment.tpl\''), + array(Smarty::PHP_ALLOW, 'phptag_block_comment.tpl', '--> hello world {php} {/php} <--', 'PHP_ALLOW, \'phptag_block_comment.tpl\''), + array(Smarty::PHP_ALLOW, 'phptag_literal.tpl', '-->{ php} echo \' hello world \'; +echo \'foo \'; +echo \'bar \'; +$foo = 3; +{ /php}<--', 'PHP_ALLOW, \'phptag_literal.tpl\''), + ); } - /** - * test unmatched {php} tag - * @expectedException SmartyCompilerException - * @expectedExceptionMessage Missing {/php} closing tag - * - */ - public function testPHP_Tag_unmatch() + /* + * Call back function for $php_handling = PHP_QUOTE + * + */ + private function quote($match) { - $content = $this->smartyBC->fetch("string:aa {php} echo 'hallo'; ae"); - } - /** - * test unmatched {/php} tag - * @expectedException SmartyCompilerException - * @expectedExceptionMessage Missing {php} open tag - * - */ - public function testPHP_TagOpen_unmatch() - { - $content = $this->smartyBC->fetch("string:aa {/php} ae"); + return htmlspecialchars($match[0], ENT_QUOTES); } + } diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache1^258487733f7ac8a0af3ec4397e7d90726fff8d1b.phptag_nocache.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache1^258487733f7ac8a0af3ec4397e7d90726fff8d1b.phptag_nocache.tpl.php new file mode 100644 index 00000000..72ee6fe6 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache1^258487733f7ac8a0af3ec4397e7d90726fff8d1b.phptag_nocache.tpl.php @@ -0,0 +1,30 @@ +decodeProperties(array ( + 'file_dependency' => + array ( + '258487733f7ac8a0af3ec4397e7d90726fff8d1b' => + array ( + 0 => './templates/phptag_nocache.tpl', + 1 => 1432394864, + 2 => 'file', + ), + ), + 'nocache_hash' => '256605560a6a41fea39_24766095', + 'tpl_function' => + array ( + ), + 'has_nocache_code' => true, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a4244152_55149112', + 'cache_lifetime' => 3600, +),true); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a4244152_55149112')) { +function content_5560a6a4244152_55149112 ($_smarty_tpl) { +?> +-->getTemplateVars('foo'); +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache2^258487733f7ac8a0af3ec4397e7d90726fff8d1b.phptag_nocache.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache2^258487733f7ac8a0af3ec4397e7d90726fff8d1b.phptag_nocache.tpl.php new file mode 100644 index 00000000..7642d5e1 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache2^258487733f7ac8a0af3ec4397e7d90726fff8d1b.phptag_nocache.tpl.php @@ -0,0 +1,30 @@ +decodeProperties(array ( + 'file_dependency' => + array ( + '258487733f7ac8a0af3ec4397e7d90726fff8d1b' => + array ( + 0 => './templates/phptag_nocache.tpl', + 1 => 1432394864, + 2 => 'file', + ), + ), + 'nocache_hash' => '96695560a6a4289380_73148826', + 'tpl_function' => + array ( + ), + 'has_nocache_code' => true, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a42d08d0_31405160', + 'cache_lifetime' => 3600, +),true); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a42d08d0_31405160')) { +function content_5560a6a42d08d0_31405160 ($_smarty_tpl) { +?> +-->getTemplateVars('foo'); +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache^334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a.334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a.php b/tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache^334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a.334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a.php new file mode 100644 index 00000000..84e90fe4 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/cache/testPHP_Tag_Nocache^334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a.334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a.php @@ -0,0 +1,29 @@ +decodeProperties(array ( + 'file_dependency' => + array ( + '334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a' => + array ( + 0 => '334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '719555593928a81104_54626482', + 'tpl_function' => + array ( + ), + 'has_nocache_code' => true, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593928ae7e16_19718700', + 'cache_lifetime' => 3600, +),true); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593928ae7e16_19718700')) { +function content_55593928ae7e16_19718700 ($_smarty_tpl) { +?> +aa ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php new file mode 100644 index 00000000..8202e581 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php @@ -0,0 +1,32 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '73781372a721db46f11c6408994a188fd91a8b55' => + array ( + 0 => './templates/asp.tpl', + 1 => 1432339743, + 2 => 'file', + ), + ), + 'nocache_hash' => '72225560a6a3e1f4d9_98898845', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3e254b2_72193956', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3e254b2_72193956')) { +function content_5560a6a3e254b2_72193956 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '72225560a6a3e1f4d9_98898845'; +?> +--><% echo 'hello world '; +echo '<% '; +echo '%> '; +%><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php new file mode 100644 index 00000000..a51104d7 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php @@ -0,0 +1,32 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'b1e2d903cd34cc1a067a96358cd41f1ec6f6a646' => + array ( + 0 => './templates/php2.tpl', + 1 => 1432340483, + 2 => 'file', + ), + ), + 'nocache_hash' => '131625560a6a3cd8e63_08956040', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3cdeb99_58769208', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3cdeb99_58769208')) { +function content_5560a6a3cdeb99_58769208 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '131625560a6a3cd8e63_08956040'; +?> +--> '; +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php new file mode 100644 index 00000000..a5473073 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php @@ -0,0 +1,44 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f35234d65e91ddc6d8e8d0b2a04722231b0ec710' => + array ( + 0 => './templates/php_block_comment.tpl', + 1 => 1432387784, + 2 => 'file', + ), + ), + 'nocache_hash' => '326065560a6a3b94eb7_16031521', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3b9aff9_10675968', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3b9aff9_10675968')) { +function content_5560a6a3b9aff9_10675968 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '326065560a6a3b94eb7_16031521'; +?> +--> '; +$foo = 3; +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php new file mode 100644 index 00000000..7d0ca0db --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php @@ -0,0 +1,40 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f14bc0bc443795e95eef36e1f9f126b927b218e9' => + array ( + 0 => './templates/php_line_comment.tpl', + 1 => 1432387784, + 2 => 'file', + ), + ), + 'nocache_hash' => '133305560a6a3a3a704_42353753', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3a405e0_30236030', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3a405e0_30236030')) { +function content_5560a6a3a405e0_30236030 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '133305560a6a3a3a704_42353753'; +?> +--> '; +$foo = 3; +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php new file mode 100644 index 00000000..2b00c1d5 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php @@ -0,0 +1,33 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'c5b3211c15b5613e1e51240577ffb56f79a23e11' => + array ( + 0 => './templates/php.tpl', + 1 => 1432330332, + 2 => 'file', + ), + ), + 'nocache_hash' => '177985560a6a38ef339_29800787', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a38f5069_49874732', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a38f5069_49874732')) { +function content_5560a6a38f5069_49874732 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '177985560a6a38ef339_29800787'; +?> +--> '; +$foo = 3; +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_block_comment_tpl_^3f5a13ae129f09269eeb53e4d841f312f05f99d0_0.file.phptag_block_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_block_comment_tpl_^3f5a13ae129f09269eeb53e4d841f312f05f99d0_0.file.phptag_block_comment.tpl.php new file mode 100644 index 00000000..bd1c559b --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_block_comment_tpl_^3f5a13ae129f09269eeb53e4d841f312f05f99d0_0.file.phptag_block_comment.tpl.php @@ -0,0 +1,44 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '3f5a13ae129f09269eeb53e4d841f312f05f99d0' => + array ( + 0 => './templates/phptag_block_comment.tpl', + 1 => 1432393087, + 2 => 'file', + ), + ), + 'nocache_hash' => '291935560a6a412b574_81106260', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a4132537_37257195', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a4132537_37257195')) { +function content_5560a6a4132537_37257195 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '291935560a6a412b574_81106260'; +?> +--><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_line_comment_tpl_^c6cabef8add2f0b2febbb09da07536088e4fd06d_0.file.phptag_line_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_line_comment_tpl_^c6cabef8add2f0b2febbb09da07536088e4fd06d_0.file.phptag_line_comment.tpl.php new file mode 100644 index 00000000..8525b381 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_line_comment_tpl_^c6cabef8add2f0b2febbb09da07536088e4fd06d_0.file.phptag_line_comment.tpl.php @@ -0,0 +1,40 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'c6cabef8add2f0b2febbb09da07536088e4fd06d' => + array ( + 0 => './templates/phptag_line_comment.tpl', + 1 => 1432392915, + 2 => 'file', + ), + ), + 'nocache_hash' => '263845560a6a40d3f16_81532548', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a40daa69_91942870', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a40daa69_91942870')) { +function content_5560a6a40daa69_91942870 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '263845560a6a40d3f16_81532548'; +?> +--><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_literal_tpl_^b932f74b35fdacf8ea961eb2af527e73e284304f_0.file.phptag_literal.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_literal_tpl_^b932f74b35fdacf8ea961eb2af527e73e284304f_0.file.phptag_literal.tpl.php new file mode 100644 index 00000000..01608827 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_literal_tpl_^b932f74b35fdacf8ea961eb2af527e73e284304f_0.file.phptag_literal.tpl.php @@ -0,0 +1,33 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'b932f74b35fdacf8ea961eb2af527e73e284304f' => + array ( + 0 => './templates/phptag_literal.tpl', + 1 => 1432393397, + 2 => 'file', + ), + ), + 'nocache_hash' => '317585560a6a41804b6_47884114', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a41a4ab7_49859504', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a41a4ab7_49859504')) { +function content_5560a6a41a4ab7_49859504 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '317585560a6a41804b6_47884114'; +?> +-->{ php} echo ' hello world '; +echo 'foo '; +echo 'bar '; +$foo = 3; +{ /php}<-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_tpl_^6dc7afbc2f38d9fe48afeac335cac254cf56ee82_0.file.phptag.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_tpl_^6dc7afbc2f38d9fe48afeac335cac254cf56ee82_0.file.phptag.tpl.php new file mode 100644 index 00000000..49de1635 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_phptag_tpl_^6dc7afbc2f38d9fe48afeac335cac254cf56ee82_0.file.phptag.tpl.php @@ -0,0 +1,33 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '6dc7afbc2f38d9fe48afeac335cac254cf56ee82' => + array ( + 0 => './templates/phptag.tpl', + 1 => 1432344711, + 2 => 'file', + ), + ), + 'nocache_hash' => '327235560a6a40834c4_22954871', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a408b565_26665705', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a408b565_26665705')) { +function content_5560a6a408b565_26665705 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '327235560a6a40834c4_22954871'; +?> +--><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php new file mode 100644 index 00000000..d5338662 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_ALLOW_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php @@ -0,0 +1,33 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f286914a7c21fa1f5fb8070f4da6115a337a26f4' => + array ( + 0 => './templates/script.tpl', + 1 => 1432343903, + 2 => 'file', + ), + ), + 'nocache_hash' => '178585560a6a4028064_71797346', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a402e008_66427223', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a402e008_66427223')) { +function content_5560a6a402e008_66427223 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '178585560a6a4028064_71797346'; +?> +--> '; +<-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php new file mode 100644 index 00000000..d7db2d23 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php @@ -0,0 +1,32 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '73781372a721db46f11c6408994a188fd91a8b55' => + array ( + 0 => './templates/asp.tpl', + 1 => 1432339743, + 2 => 'file', + ), + ), + 'nocache_hash' => '289205560a6a3d71c27_50543602', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3d7d6e0_95336026', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3d7d6e0_95336026')) { +function content_5560a6a3d7d6e0_95336026 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '289205560a6a3d71c27_50543602'; +?> +--> echo 'hello world '; +echo ' '; +echo '';?> '; +';?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php new file mode 100644 index 00000000..8547f691 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php @@ -0,0 +1,32 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'b1e2d903cd34cc1a067a96358cd41f1ec6f6a646' => + array ( + 0 => './templates/php2.tpl', + 1 => 1432340483, + 2 => 'file', + ), + ), + 'nocache_hash' => '245885560a6a3c36152_75547675', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3c41ad2_21145560', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3c41ad2_21145560')) { +function content_5560a6a3c41ad2_21145560 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '245885560a6a3c36152_75547675'; +?> +-->echo ' hello world '; +echo ''; +echo '';?> '; +';?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php new file mode 100644 index 00000000..94861014 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php @@ -0,0 +1,44 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f35234d65e91ddc6d8e8d0b2a04722231b0ec710' => + array ( + 0 => './templates/php_block_comment.tpl', + 1 => 1432387784, + 2 => 'file', + ), + ), + 'nocache_hash' => '178885560a6a3ad32d5_10964447', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3ae6518_67021582', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3ae6518_67021582')) { +function content_5560a6a3ae6518_67021582 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '178885560a6a3ad32d5_10964447'; +?> +-->echo ' hello world '; +/* +* comment is okay +* +* comment once again +*/ + +echo ''; + +/* +* other comment foo +*/ + +echo '';?> '; +$foo = 3; +';?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php new file mode 100644 index 00000000..b3c1ec8e --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php @@ -0,0 +1,40 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f14bc0bc443795e95eef36e1f9f126b927b218e9' => + array ( + 0 => './templates/php_line_comment.tpl', + 1 => 1432387784, + 2 => 'file', + ), + ), + 'nocache_hash' => '139405560a6a3985781_34109568', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3998006_97311186', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3998006_97311186')) { +function content_5560a6a3998006_97311186 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '139405560a6a3985781_34109568'; +?> +-->echo ' hello world '; +// comment is okay +// +// comment once again + +echo ''; + +// other comment foo + +echo '';?> '; +$foo = 3; +';?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php new file mode 100644 index 00000000..a0cea44d --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php @@ -0,0 +1,33 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'c5b3211c15b5613e1e51240577ffb56f79a23e11' => + array ( + 0 => './templates/php.tpl', + 1 => 1432330332, + 2 => 'file', + ), + ), + 'nocache_hash' => '14805560a6a3846b13_54373972', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3851f57_13715742', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3851f57_13715742')) { +function content_5560a6a3851f57_13715742 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '14805560a6a3846b13_54373972'; +?> +-->echo ' hello world '; +echo ''; +echo '';?> '; +$foo = 3; +';?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php new file mode 100644 index 00000000..e13033ca --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_PASSTHRU_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php @@ -0,0 +1,33 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f286914a7c21fa1f5fb8070f4da6115a337a26f4' => + array ( + 0 => './templates/script.tpl', + 1 => 1432343903, + 2 => 'file', + ), + ), + 'nocache_hash' => '93805560a6a3ec26c9_68047538', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3ec79f1_10305020', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3ec79f1_10305020')) { +function content_5560a6a3ec79f1_10305020 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '93805560a6a3ec26c9_68047538'; +?> +--> +echo \' hello world \'; +echo \' \'; +';?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php new file mode 100644 index 00000000..2a7825d0 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php @@ -0,0 +1,32 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '73781372a721db46f11c6408994a188fd91a8b55' => + array ( + 0 => './templates/asp.tpl', + 1 => 1432339743, + 2 => 'file', + ), + ), + 'nocache_hash' => '229935560a6a3dcd829_42217180', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3dd92d3_74656038', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3dd92d3_74656038')) { +function content_5560a6a3dd92d3_74656038 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '229935560a6a3dcd829_42217180'; +?> +--><% echo 'hello world '; +echo '<% '; +echo '%> '; +%><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php new file mode 100644 index 00000000..bf9763e5 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php @@ -0,0 +1,32 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'b1e2d903cd34cc1a067a96358cd41f1ec6f6a646' => + array ( + 0 => './templates/php2.tpl', + 1 => 1432340483, + 2 => 'file', + ), + ), + 'nocache_hash' => '157015560a6a3c88359_63631732', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3c93b22_47623553', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3c93b22_47623553')) { +function content_5560a6a3c93b22_47623553 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '157015560a6a3c88359_63631732'; +?> +--><? echo ' hello world '; +echo '<? '; +echo '?> '; +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php new file mode 100644 index 00000000..89b94dbc --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php @@ -0,0 +1,44 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f35234d65e91ddc6d8e8d0b2a04722231b0ec710' => + array ( + 0 => './templates/php_block_comment.tpl', + 1 => 1432387784, + 2 => 'file', + ), + ), + 'nocache_hash' => '124415560a6a3b36cd1_88651193', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3b49338_82254829', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3b49338_82254829')) { +function content_5560a6a3b49338_82254829 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '124415560a6a3b36cd1_88651193'; +?> +--><?php echo ' hello world '; +/* +* comment <?php is okay +* +* comment <?php once again +*/ + +echo '<?php '; + +/* +* other comment <% foo +*/ + +echo '?> '; +$foo = 3; +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php new file mode 100644 index 00000000..49d0cc84 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php @@ -0,0 +1,40 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f14bc0bc443795e95eef36e1f9f126b927b218e9' => + array ( + 0 => './templates/php_line_comment.tpl', + 1 => 1432387784, + 2 => 'file', + ), + ), + 'nocache_hash' => '142375560a6a39e0431_38387851', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a39f2691_36565807', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a39f2691_36565807')) { +function content_5560a6a39f2691_36565807 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '142375560a6a39e0431_38387851'; +?> +--><?php echo ' hello world '; +// comment <?php is okay +// +// comment <?php once again + +echo '<?php '; + +// other comment <% foo + +echo '?> '; +$foo = 3; +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php new file mode 100644 index 00000000..5b390ef0 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php @@ -0,0 +1,33 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'c5b3211c15b5613e1e51240577ffb56f79a23e11' => + array ( + 0 => './templates/php.tpl', + 1 => 1432330332, + 2 => 'file', + ), + ), + 'nocache_hash' => '57295560a6a389e815_42812125', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a38aa6a7_47166033', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a38aa6a7_47166033')) { +function content_5560a6a38aa6a7_47166033 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '57295560a6a389e815_42812125'; +?> +--><?php echo ' hello world '; +echo '<?php '; +echo '?> '; +$foo = 3; +?><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php new file mode 100644 index 00000000..1d8b2208 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_QUOTE_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php @@ -0,0 +1,34 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f286914a7c21fa1f5fb8070f4da6115a337a26f4' => + array ( + 0 => './templates/script.tpl', + 1 => 1432343903, + 2 => 'file', + ), + ), + 'nocache_hash' => '169095560a6a3f1dcc0_82911785', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3f23483_24967866', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3f23483_24967866')) { +function content_5560a6a3f23483_24967866 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '169095560a6a3f1dcc0_82911785'; +?> +--><script language='php'> +echo ' hello world '; +echo ' + language=\'php\'> '; +echo '</script> '; +</script><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php new file mode 100644 index 00000000..259c99e4 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_asp_tpl_^73781372a721db46f11c6408994a188fd91a8b55_0.file.asp.tpl.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '73781372a721db46f11c6408994a188fd91a8b55' => + array ( + 0 => './templates/asp.tpl', + 1 => 1432339743, + 2 => 'file', + ), + ), + 'nocache_hash' => '246675560a6a3d238b5_85634331', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3d29db5_12519429', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3d29db5_12519429')) { +function content_5560a6a3d29db5_12519429 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '246675560a6a3d238b5_85634331'; +?> +--><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php new file mode 100644 index 00000000..05f7f61d --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php2_tpl_^b1e2d903cd34cc1a067a96358cd41f1ec6f6a646_0.file.php2.tpl.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'b1e2d903cd34cc1a067a96358cd41f1ec6f6a646' => + array ( + 0 => './templates/php2.tpl', + 1 => 1432340483, + 2 => 'file', + ), + ), + 'nocache_hash' => '39035560a6a3bea963_25235859', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3bf0648_13182321', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3bf0648_13182321')) { +function content_5560a6a3bf0648_13182321 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '39035560a6a3bea963_25235859'; +?> +--><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php new file mode 100644 index 00000000..90c4069a --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_block_comment_tpl_^f35234d65e91ddc6d8e8d0b2a04722231b0ec710_0.file.php_block_comment.tpl.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f35234d65e91ddc6d8e8d0b2a04722231b0ec710' => + array ( + 0 => './templates/php_block_comment.tpl', + 1 => 1432387784, + 2 => 'file', + ), + ), + 'nocache_hash' => '224995560a6a3a86215_42197786', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3a8c886_63033180', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3a8c886_63033180')) { +function content_5560a6a3a8c886_63033180 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '224995560a6a3a86215_42197786'; +?> +--><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php new file mode 100644 index 00000000..7b450be8 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_line_comment_tpl_^f14bc0bc443795e95eef36e1f9f126b927b218e9_0.file.php_line_comment.tpl.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f14bc0bc443795e95eef36e1f9f126b927b218e9' => + array ( + 0 => './templates/php_line_comment.tpl', + 1 => 1432387784, + 2 => 'file', + ), + ), + 'nocache_hash' => '77515560a6a39396d5_00376471', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a393fa80_81855864', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a393fa80_81855864')) { +function content_5560a6a393fa80_81855864 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '77515560a6a39396d5_00376471'; +?> +--><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php new file mode 100644 index 00000000..13f65523 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_php_tpl_^c5b3211c15b5613e1e51240577ffb56f79a23e11_0.file.php.tpl.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'c5b3211c15b5613e1e51240577ffb56f79a23e11' => + array ( + 0 => './templates/php.tpl', + 1 => 1432330332, + 2 => 'file', + ), + ), + 'nocache_hash' => '16435560a6a37fcaa9_30604995', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3802929_58301174', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3802929_58301174')) { +function content_5560a6a3802929_58301174 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '16435560a6a37fcaa9_30604995'; +?> +--><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php new file mode 100644 index 00000000..9fc19946 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/PHP_REMOVE_script_tpl_^f286914a7c21fa1f5fb8070f4da6115a337a26f4_0.file.script.tpl.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f286914a7c21fa1f5fb8070f4da6115a337a26f4' => + array ( + 0 => './templates/script.tpl', + 1 => 1432343903, + 2 => 'file', + ), + ), + 'nocache_hash' => '100395560a6a3e707a1_50485997', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a3e76d53_68782354', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a3e76d53_68782354')) { +function content_5560a6a3e76d53_68782354 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '100395560a6a3e707a1_50485997'; +?> +--><-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_asp^147767a714e2d87c805ebbab7b7d6da29ccc27ce_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_asp^147767a714e2d87c805ebbab7b7d6da29ccc27ce_0.string.php new file mode 100644 index 00000000..8934816c --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_asp^147767a714e2d87c805ebbab7b7d6da29ccc27ce_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '147767a714e2d87c805ebbab7b7d6da29ccc27ce' => + array ( + 0 => '147767a714e2d87c805ebbab7b7d6da29ccc27ce', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '2157455593927e9acb7_33930172', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593927ebfaf4_91599384', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593927ebfaf4_91599384')) { +function content_55593927ebfaf4_91599384 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '2157455593927e9acb7_33930172'; +?> +aa <% echo 'hello world'; + echo ' multiline';%> ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_asp^55e36bd9e4f94b1714c54e1aaa409bf4e3e1ee75_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_asp^55e36bd9e4f94b1714c54e1aaa409bf4e3e1ee75_0.string.php new file mode 100644 index 00000000..c68ec1a0 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_asp^55e36bd9e4f94b1714c54e1aaa409bf4e3e1ee75_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '55e36bd9e4f94b1714c54e1aaa409bf4e3e1ee75' => + array ( + 0 => '55e36bd9e4f94b1714c54e1aaa409bf4e3e1ee75', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '2402554f338b984f49_54112984', + 'has_nocache_code' => false, + 'version' => '3.1.22-dev/32', + 'unifunc' => 'content_554f338b98a935_80020913', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_554f338b98a935_80020913')) { +function content_554f338b98a935_80020913 ($_smarty_tpl) { +?> +properties['nocache_hash'] = '2402554f338b984f49_54112984'; +?> +aa <% echo 'hello world';%> ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php2^1642f89cbc7f9a3d853a57f0078994f273337ee7_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php2^1642f89cbc7f9a3d853a57f0078994f273337ee7_0.string.php new file mode 100644 index 00000000..c3333c68 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php2^1642f89cbc7f9a3d853a57f0078994f273337ee7_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '1642f89cbc7f9a3d853a57f0078994f273337ee7' => + array ( + 0 => '1642f89cbc7f9a3d853a57f0078994f273337ee7', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '25520554f338ba3b8c6_31527810', + 'has_nocache_code' => false, + 'version' => '3.1.22-dev/32', + 'unifunc' => 'content_554f338ba41d23_43807506', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_554f338ba41d23_43807506')) { +function content_554f338ba41d23_43807506 ($_smarty_tpl) { +?> +properties['nocache_hash'] = '25520554f338ba3b8c6_31527810'; +?> +aa ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php2^f9ee56210d8959c365fe4701b78db5d75e548b09_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php2^f9ee56210d8959c365fe4701b78db5d75e548b09_0.string.php new file mode 100644 index 00000000..7144772e --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php2^f9ee56210d8959c365fe4701b78db5d75e548b09_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'f9ee56210d8959c365fe4701b78db5d75e548b09' => + array ( + 0 => 'f9ee56210d8959c365fe4701b78db5d75e548b09', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '172045559392812e634_53789779', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593928152200_99813019', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593928152200_99813019')) { +function content_55593928152200_99813019 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '172045559392812e634_53789779'; +?> +aa '; ?> ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php3^fe80812fea5eccf490ddb11ddd80bc6a4ab0468d_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php3^fe80812fea5eccf490ddb11ddd80bc6a4ab0468d_0.string.php new file mode 100644 index 00000000..58e21db3 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php3^fe80812fea5eccf490ddb11ddd80bc6a4ab0468d_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'fe80812fea5eccf490ddb11ddd80bc6a4ab0468d' => + array ( + 0 => 'fe80812fea5eccf490ddb11ddd80bc6a4ab0468d', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '9565555939282137d3_21252914', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593928238bf1_83788617', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593928238bf1_83788617')) { +function content_55593928238bf1_83788617 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '9565555939282137d3_21252914'; +?> +aa '; ?> ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php4^7ecddd1e602197189a045b584e64eba30aeda3f7_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php4^7ecddd1e602197189a045b584e64eba30aeda3f7_0.string.php new file mode 100644 index 00000000..79c9c1c0 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php4^7ecddd1e602197189a045b584e64eba30aeda3f7_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '7ecddd1e602197189a045b584e64eba30aeda3f7' => + array ( + 0 => '7ecddd1e602197189a045b584e64eba30aeda3f7', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '28370555939282fa8c4_86001826', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_5559392831efa6_64411505', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5559392831efa6_64411505')) { +function content_5559392831efa6_64411505 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '28370555939282fa8c4_86001826'; +?> +aa */ echo '?>'; ?> ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php^59db4e8155df290f7f39f96ad5295f0d0db9dad5_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php^59db4e8155df290f7f39f96ad5295f0d0db9dad5_0.string.php new file mode 100644 index 00000000..5027ed6a --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_php^59db4e8155df290f7f39f96ad5295f0d0db9dad5_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '59db4e8155df290f7f39f96ad5295f0d0db9dad5' => + array ( + 0 => '59db4e8155df290f7f39f96ad5295f0d0db9dad5', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '1027355593927db1418_41275518', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593927dd6630_91844690', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593927dd6630_91844690')) { +function content_55593927dd6630_91844690 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '1027355593927db1418_41275518'; +?> +aa ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_script^34b9d6451914bcb8a4efdba500a5ac0a6e5405d5_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_script^34b9d6451914bcb8a4efdba500a5ac0a6e5405d5_0.string.php new file mode 100644 index 00000000..df482fd4 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_script^34b9d6451914bcb8a4efdba500a5ac0a6e5405d5_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '34b9d6451914bcb8a4efdba500a5ac0a6e5405d5' => + array ( + 0 => '34b9d6451914bcb8a4efdba500a5ac0a6e5405d5', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '2803554f338b9da982_40052255', + 'has_nocache_code' => false, + 'version' => '3.1.22-dev/32', + 'unifunc' => 'content_554f338b9e0582_52915495', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_554f338b9e0582_52915495')) { +function content_554f338b9e0582_52915495 ($_smarty_tpl) { +?> +properties['nocache_hash'] = '2803554f338b9da982_40052255'; +?> +aa ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_script^d63fdf19292ea2ae9496a1714bafe3c185466c14_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_script^d63fdf19292ea2ae9496a1714bafe3c185466c14_0.string.php new file mode 100644 index 00000000..3ae79e24 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_ALLOW_script^d63fdf19292ea2ae9496a1714bafe3c185466c14_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'd63fdf19292ea2ae9496a1714bafe3c185466c14' => + array ( + 0 => 'd63fdf19292ea2ae9496a1714bafe3c185466c14', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '261195559392803bff5_74826188', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593928061193_65489387', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593928061193_65489387')) { +function content_55593928061193_65489387 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '261195559392803bff5_74826188'; +?> +aa ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_asp^618ce7ae46169f19edd1fa756335f56a3c5a9e4e_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_asp^618ce7ae46169f19edd1fa756335f56a3c5a9e4e_0.string.php new file mode 100644 index 00000000..ba76b8d5 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_asp^618ce7ae46169f19edd1fa756335f56a3c5a9e4e_0.string.php @@ -0,0 +1,31 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '618ce7ae46169f19edd1fa756335f56a3c5a9e4e' => + array ( + 0 => '618ce7ae46169f19edd1fa756335f56a3c5a9e4e', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '3190055593927937d46_15344313', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_5559392795bd98_44307904', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5559392795bd98_44307904')) { +function content_5559392795bd98_44307904 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '3190055593927937d46_15344313'; +?> +pa + echo 'hello world';'; ?> +pe \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_php^dfd2ae57b814217b02427e3a7c1e45326a2f0b66_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_php^dfd2ae57b814217b02427e3a7c1e45326a2f0b66_0.string.php new file mode 100644 index 00000000..6c6d2218 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_php^dfd2ae57b814217b02427e3a7c1e45326a2f0b66_0.string.php @@ -0,0 +1,31 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'dfd2ae57b814217b02427e3a7c1e45326a2f0b66' => + array ( + 0 => 'dfd2ae57b814217b02427e3a7c1e45326a2f0b66', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '103955593927849679_50588865', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_5559392786d875_18499883', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5559392786d875_18499883')) { +function content_5559392786d875_18499883 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '103955593927849679_50588865'; +?> +pa + echo 'hello world'; '; ?> +pe \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_script^9ed2b318452fb487a35898fa974eb20312e4bfb2_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_script^9ed2b318452fb487a35898fa974eb20312e4bfb2_0.string.php new file mode 100644 index 00000000..e50cbe31 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_PASSTHRU_script^9ed2b318452fb487a35898fa974eb20312e4bfb2_0.string.php @@ -0,0 +1,31 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '9ed2b318452fb487a35898fa974eb20312e4bfb2' => + array ( + 0 => '9ed2b318452fb487a35898fa974eb20312e4bfb2', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '1808555593927a1dff2_87111518', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593927a42790_30883460', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593927a42790_30883460')) { +function content_55593927a42790_30883460 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '1808555593927a1dff2_87111518'; +?> +pa + language='php'> echo 'hello world'; +>pe \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_asp^2050297339b8c4054ff1b33b2b38fc6d68430bda_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_asp^2050297339b8c4054ff1b33b2b38fc6d68430bda_0.string.php new file mode 100644 index 00000000..fa556a04 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_asp^2050297339b8c4054ff1b33b2b38fc6d68430bda_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '2050297339b8c4054ff1b33b2b38fc6d68430bda' => + array ( + 0 => '2050297339b8c4054ff1b33b2b38fc6d68430bda', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '2103555593927be7094_19662045', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593927c0c104_05134464', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593927c0c104_05134464')) { +function content_55593927c0c104_05134464 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '2103555593927be7094_19662045'; +?> +qa<% echo 'hello world';%>qe \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_php^55cd83958c8d05ab29afc80c279848839c11f167_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_php^55cd83958c8d05ab29afc80c279848839c11f167_0.string.php new file mode 100644 index 00000000..f0169ab2 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_php^55cd83958c8d05ab29afc80c279848839c11f167_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '55cd83958c8d05ab29afc80c279848839c11f167' => + array ( + 0 => '55cd83958c8d05ab29afc80c279848839c11f167', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '26070554f338b84deb4_59707349', + 'has_nocache_code' => false, + 'version' => '3.1.22-dev/32', + 'unifunc' => 'content_554f338b853e32_29589223', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_554f338b853e32_29589223')) { +function content_554f338b853e32_29589223 ($_smarty_tpl) { +?> +properties['nocache_hash'] = '26070554f338b84deb4_59707349'; +?> +qa<?php echo 'hello world'; ?>qe \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_php^a56eaa5d218cb759bbe71ce0c1fbc258de024673_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_php^a56eaa5d218cb759bbe71ce0c1fbc258de024673_0.string.php new file mode 100644 index 00000000..2b217929 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_php^a56eaa5d218cb759bbe71ce0c1fbc258de024673_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'a56eaa5d218cb759bbe71ce0c1fbc258de024673' => + array ( + 0 => 'a56eaa5d218cb759bbe71ce0c1fbc258de024673', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '268255593927b00774_04522717', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593927b265d6_97960255', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593927b265d6_97960255')) { +function content_55593927b265d6_97960255 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '268255593927b00774_04522717'; +?> +qa<?php echo 'hello world'; +echo ' multiline'; ?>qe \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_script^e73aa3e4c45dc1026f40d8eebad4520034abdc96_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_script^e73aa3e4c45dc1026f40d8eebad4520034abdc96_0.string.php new file mode 100644 index 00000000..674b296b --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_QUOTE_script^e73aa3e4c45dc1026f40d8eebad4520034abdc96_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'e73aa3e4c45dc1026f40d8eebad4520034abdc96' => + array ( + 0 => 'e73aa3e4c45dc1026f40d8eebad4520034abdc96', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '1805655593927ccae29_43538258', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593927cf0a75_56720928', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593927cf0a75_56720928')) { +function content_55593927cf0a75_56720928 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '1805655593927ccae29_43538258'; +?> +qa<script language='php'> echo 'hello world';</script>qe \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_asp^bd55cfdb2baad5ef94c6ce6927a1472d3e7ab89e_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_asp^bd55cfdb2baad5ef94c6ce6927a1472d3e7ab89e_0.string.php new file mode 100644 index 00000000..21d68d9c --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_asp^bd55cfdb2baad5ef94c6ce6927a1472d3e7ab89e_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'bd55cfdb2baad5ef94c6ce6927a1472d3e7ab89e' => + array ( + 0 => 'bd55cfdb2baad5ef94c6ce6927a1472d3e7ab89e', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '1764155593927683483_36757048', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_555939276a7a82_80689539', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_555939276a7a82_80689539')) { +function content_555939276a7a82_80689539 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '1764155593927683483_36757048'; +?> +a echo 'hello world';e \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_php^d95a7e705d03b24cfa9a7b37355e0f5928788f8f_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_php^d95a7e705d03b24cfa9a7b37355e0f5928788f8f_0.string.php new file mode 100644 index 00000000..96a0845d --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_php^d95a7e705d03b24cfa9a7b37355e0f5928788f8f_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'd95a7e705d03b24cfa9a7b37355e0f5928788f8f' => + array ( + 0 => 'd95a7e705d03b24cfa9a7b37355e0f5928788f8f', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '14704555939275a1529_87121270', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_555939275c4de3_59972044', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_555939275c4de3_59972044')) { +function content_555939275c4de3_59972044 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '14704555939275a1529_87121270'; +?> +a echo 'hello world'; e \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_script^c501e69e87dfcffdfa6ae4f31821fed01c952bcf_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_script^c501e69e87dfcffdfa6ae4f31821fed01c952bcf_0.string.php new file mode 100644 index 00000000..9bf5c323 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_REMOVE_script^c501e69e87dfcffdfa6ae4f31821fed01c952bcf_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'c501e69e87dfcffdfa6ae4f31821fed01c952bcf' => + array ( + 0 => 'c501e69e87dfcffdfa6ae4f31821fed01c952bcf', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '139055593927767082_80962952', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_5559392778b0a5_42687903', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5559392778b0a5_42687903')) { +function content_5559392778b0a5_42687903 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '139055593927767082_80962952'; +?> +a echo 'hello world';e \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag^ffb90734275e1df8a2620858c2d29c29e857a6f4_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag^ffb90734275e1df8a2620858c2d29c29e857a6f4_0.string.php new file mode 100644 index 00000000..f6c2e4b3 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag^ffb90734275e1df8a2620858c2d29c29e857a6f4_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'ffb90734275e1df8a2620858c2d29c29e857a6f4' => + array ( + 0 => 'ffb90734275e1df8a2620858c2d29c29e857a6f4', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '1578555939289931c6_03870123', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_555939289baec0_46087525', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_555939289baec0_46087525')) { +function content_555939289baec0_46087525 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '1578555939289931c6_03870123'; +?> +aa ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Literal^9dbc9ad06b2758229c6aaa13dc090bf17f61e175_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Literal^9dbc9ad06b2758229c6aaa13dc090bf17f61e175_0.string.php new file mode 100644 index 00000000..a0524992 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Literal^9dbc9ad06b2758229c6aaa13dc090bf17f61e175_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '9dbc9ad06b2758229c6aaa13dc090bf17f61e175' => + array ( + 0 => '9dbc9ad06b2758229c6aaa13dc090bf17f61e175', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '7837554f338bdcc323_93297043', + 'has_nocache_code' => false, + 'version' => '3.1.22-dev/32', + 'unifunc' => 'content_554f338bdd0646_40859231', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_554f338bdd0646_40859231')) { +function content_554f338bdd0646_40859231 ($_smarty_tpl) { +?> +properties['nocache_hash'] = '7837554f338bdcc323_93297043'; +?> +aa { php} echo 'hallo'; {/php} ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Literal^afd558b7df25c05c17fef29729290c8efe019ae5_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Literal^afd558b7df25c05c17fef29729290c8efe019ae5_0.string.php new file mode 100644 index 00000000..cceea7ae --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Literal^afd558b7df25c05c17fef29729290c8efe019ae5_0.string.php @@ -0,0 +1,29 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'afd558b7df25c05c17fef29729290c8efe019ae5' => + array ( + 0 => 'afd558b7df25c05c17fef29729290c8efe019ae5', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '2344155593928c4bd77_40527996', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593928c6d2f6_64447966', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593928c6d2f6_64447966')) { +function content_55593928c6d2f6_64447966 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '2344155593928c4bd77_40527996'; +?> +aa { php} echo 'hallo'; { /php} ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache1^258487733f7ac8a0af3ec4397e7d90726fff8d1b_0.file.phptag_nocache.tpl.cache.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache1^258487733f7ac8a0af3ec4397e7d90726fff8d1b_0.file.phptag_nocache.tpl.cache.php new file mode 100644 index 00000000..13ff5946 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache1^258487733f7ac8a0af3ec4397e7d90726fff8d1b_0.file.phptag_nocache.tpl.cache.php @@ -0,0 +1,31 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '258487733f7ac8a0af3ec4397e7d90726fff8d1b' => + array ( + 0 => './templates/phptag_nocache.tpl', + 1 => 1432394864, + 2 => 'file', + ), + ), + 'nocache_hash' => '256605560a6a41fea39_24766095', + 'has_nocache_code' => true, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a4204ea6_14781333', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a4204ea6_14781333')) { +function content_5560a6a4204ea6_14781333 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '256605560a6a41fea39_24766095'; +?> +-->getTemplateVars(\'foo\'); +?>/*/%%SmartyNocache:256605560a6a41fea39_24766095%%*/';?> +<-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache2^258487733f7ac8a0af3ec4397e7d90726fff8d1b_0.file.phptag_nocache.tpl.cache.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache2^258487733f7ac8a0af3ec4397e7d90726fff8d1b_0.file.phptag_nocache.tpl.cache.php new file mode 100644 index 00000000..4a0d6467 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache2^258487733f7ac8a0af3ec4397e7d90726fff8d1b_0.file.phptag_nocache.tpl.cache.php @@ -0,0 +1,31 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '258487733f7ac8a0af3ec4397e7d90726fff8d1b' => + array ( + 0 => './templates/phptag_nocache.tpl', + 1 => 1432394864, + 2 => 'file', + ), + ), + 'nocache_hash' => '96695560a6a4289380_73148826', + 'has_nocache_code' => true, + 'version' => '3.1.24-dev/7', + 'unifunc' => 'content_5560a6a428f166_91455172', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5560a6a428f166_91455172')) { +function content_5560a6a428f166_91455172 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '96695560a6a4289380_73148826'; +?> +-->getTemplateVars(\'foo\'); +?>/*/%%SmartyNocache:96695560a6a4289380_73148826%%*/';?> +<-- \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache^334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a_0.string.cache.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache^334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a_0.string.cache.php new file mode 100644 index 00000000..9d463c83 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testPHP_Tag_Nocache^334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a_0.string.cache.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a' => + array ( + 0 => '334b0d8ca0d4913d0bd1388b65cf1b4b85cddd0a', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '719555593928a81104_54626482', + 'has_nocache_code' => true, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593928aa7ee5_46860318', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593928aa7ee5_46860318')) { +function content_55593928aa7ee5_46860318 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '719555593928a81104_54626482'; +?> +aa /*/%%SmartyNocache:719555593928a81104_54626482%%*/';?> + ae \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_asp^769af836ce3f341691ba88b90a507252276ee805_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_asp^769af836ce3f341691ba88b90a507252276ee805_0.string.php new file mode 100644 index 00000000..aa59d15a --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_asp^769af836ce3f341691ba88b90a507252276ee805_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '769af836ce3f341691ba88b90a507252276ee805' => + array ( + 0 => '769af836ce3f341691ba88b90a507252276ee805', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '3839555939286d0f43_36825149', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_555939286f65b4_79681215', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_555939286f65b4_79681215')) { +function content_555939286f65b4_79681215 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '3839555939286d0f43_36825149'; +?> +aa + ee \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_asp_close^20e1c457e969bae7d525db269cd4183cbabc96fb_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_asp_close^20e1c457e969bae7d525db269cd4183cbabc96fb_0.string.php new file mode 100644 index 00000000..47842718 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_asp_close^20e1c457e969bae7d525db269cd4183cbabc96fb_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '20e1c457e969bae7d525db269cd4183cbabc96fb' => + array ( + 0 => '20e1c457e969bae7d525db269cd4183cbabc96fb', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '17612555939287b9485_61342744', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_555939287dce50_99371285', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_555939287dce50_99371285')) { +function content_555939287dce50_99371285 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '17612555939287b9485_61342744'; +?> +aa '; ?> + ee \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_php^94bff756fd8c17c92272c3157227807e71b9b76b_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_php^94bff756fd8c17c92272c3157227807e71b9b76b_0.string.php new file mode 100644 index 00000000..1f4e4fd2 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_php^94bff756fd8c17c92272c3157227807e71b9b76b_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '94bff756fd8c17c92272c3157227807e71b9b76b' => + array ( + 0 => '94bff756fd8c17c92272c3157227807e71b9b76b', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '14937555939285050e4_85822969', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_55593928528da3_14468032', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_55593928528da3_14468032')) { +function content_55593928528da3_14468032 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '14937555939285050e4_85822969'; +?> +aa + ee \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_php_close^95e5f93039ca422029731c3b33e50227679f6a1a_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_php_close^95e5f93039ca422029731c3b33e50227679f6a1a_0.string.php new file mode 100644 index 00000000..c8fd6ed5 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_php_close^95e5f93039ca422029731c3b33e50227679f6a1a_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '95e5f93039ca422029731c3b33e50227679f6a1a' => + array ( + 0 => '95e5f93039ca422029731c3b33e50227679f6a1a', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '9758555939285e89e3_50709710', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_5559392860d997_48643331', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_5559392860d997_48643331')) { +function content_5559392860d997_48643331 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '9758555939285e89e3_50709710'; +?> +aa '; ?> + ee \ No newline at end of file diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_script^db45d9a8f45323aaa436da454b9314d7392a12e8_0.string.php b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_script^db45d9a8f45323aaa436da454b9314d7392a12e8_0.string.php new file mode 100644 index 00000000..105fb6df --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/templates_c/testUnmatched_script^db45d9a8f45323aaa436da454b9314d7392a12e8_0.string.php @@ -0,0 +1,30 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'db45d9a8f45323aaa436da454b9314d7392a12e8' => + array ( + 0 => 'db45d9a8f45323aaa436da454b9314d7392a12e8', + 1 => 0, + 2 => 'string', + ), + ), + 'nocache_hash' => '8981555939288a60d5_67613954', + 'has_nocache_code' => false, + 'version' => '3.1.24-dev/6', + 'unifunc' => 'content_555939288cbd03_37843953', +),false); +/*/%%SmartyHeaderCode%%*/ +if ($_valid && !is_callable('content_555939288cbd03_37843953')) { +function content_555939288cbd03_37843953 ($_smarty_tpl) { + +$_smarty_tpl->properties['nocache_hash'] = '8981555939288a60d5_67613954'; +?> +aa + language='php'> echo 'hello world'; ae \ No newline at end of file