summaryrefslogtreecommitdiff
path: root/tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php')
-rw-r--r--tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php b/tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php
index 81549525..7bfe1a59 100644
--- a/tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php
+++ b/tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php
@@ -192,6 +192,15 @@ class RegisterFunctionTest extends PHPUnit_Smarty
];
}
+ /**
+ * test registerPlugin for function name ending in 'close' #1122
+ */
+ public function testRegisterFunctionEndingInClose()
+ {
+ $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION, 'window_close', 'myfunction');
+ $this->assertEquals('hello world 1', $this->smarty->fetch('eval:{window_close value=1}'));
+ }
+
}
function myfunction($params, $smarty)