add test for issue 327

This commit is contained in:
Uwe Tews
2017-08-26 11:46:33 +02:00
parent 661ffe75ef
commit a202d5b464
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
* Smarty PHPunit tests compiler errors
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for compiler tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*/
class ModifierIssue327Test extends PHPUnit_Smarty
{
public function setUp()
{
$this->setUpSmarty(dirname(__FILE__));
}
public function testInit()
{
$this->cleanDirs();
}
public function testModifier327()
{
$this->assertEquals('hello you', $this->smarty->fetch('string:{"hello world"|substr:0:-5|cat:"you"}'));
}
}