summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Wisselink <s.wisselink@iwink.nl>2023-10-22 22:41:21 +0200
committerSimon Wisselink <s.wisselink@iwink.nl>2023-10-22 23:51:47 +0200
commitbabec0f29b47fb878d4b144913c6f1e567b186ec (patch)
tree20cb99d33f95f7ac600d68441a1e673a6f8e89ea /tests
parent212bf88eb23791edcb9ab662ea438743b40f5943 (diff)
downloadsmarty-babec0f29b47fb878d4b144913c6f1e567b186ec.tar.gz
smarty-babec0f29b47fb878d4b144913c6f1e567b186ec.tar.bz2
smarty-babec0f29b47fb878d4b144913c6f1e567b186ec.zip
add case sensitivity test
Diffstat (limited to 'tests')
-rw-r--r--tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php b/tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php
index 7c738505..473cbb0b 100644
--- a/tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php
+++ b/tests/UnitTests/SmartyMethodsTests/RegisterFunction/RegisterFunctionTest.php
@@ -166,6 +166,18 @@ class RegisterFunctionTest extends PHPUnit_Smarty
$this->smarty->unregisterPlugin(Smarty::PLUGIN_FUNCTION, 'testfunction');
$this->assertIsArray($this->smarty->getRegisteredPlugin(Smarty::PLUGIN_BLOCK, 'testfunction'));
}
+
+ /**
+ * Test case (in)sensitivy of plugin functions
+ * @return void
+ * @throws \Smarty\Exception
+ * @group issue907
+ */
+ public function testCaseSensitivity() {
+ $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION, 'customTag', 'myfunction');
+ $this->assertEquals('hello world ', $this->smarty->fetch('string:{customTag}'));
+ }
+
}
function myfunction($params, $smarty)