diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php b/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php index 33586b7b..1463b5fd 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php @@ -93,6 +93,14 @@ class CompilePhpTest extends PHPUnit_Smarty $content = $this->smartyBC->fetch("string:aa {php no cache} echo 'hallo'; {/php} ae"); } + /** + * Test regression that plugin names starting with 'php' do work + */ + public function testPHPfooPlugin() + { + $this->smarty->addPluginsDir("./PHPunitplugins/"); + $this->assertEquals('phptest okay', $this->smarty->fetch('string:{phptest}')); + } public function data() { diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/PHPunitplugins/function.phptest.php b/tests/UnitTests/TemplateSource/TagTests/Php/PHPunitplugins/function.phptest.php new file mode 100644 index 00000000..922609e4 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Php/PHPunitplugins/function.phptest.php @@ -0,0 +1,5 @@ +