mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
function smarty_function_phptest($params,$smarty)
|
||||
{
|
||||
return 'phptest okay';
|
||||
}
|
Reference in New Issue
Block a user