This commit is contained in:
Uwe Tews
2017-11-20 02:17:35 +01:00
parent b3a64efa14
commit afd68d7104

View File

@@ -25,6 +25,7 @@ class CompileDelimiterTest extends PHPUnit_Smarty
{ {
$this->cleanDirs(); $this->cleanDirs();
} }
/** /**
* test delimiter tag test * test delimiter tag test
*/ */
@@ -39,4 +40,16 @@ class CompileDelimiterTest extends PHPUnit_Smarty
$tpl = $this->smarty->createTemplate('string:x{rdelim}x'); $tpl = $this->smarty->createTemplate('string:x{rdelim}x');
$this->assertEquals('x}x', $this->smarty->fetch($tpl)); $this->assertEquals('x}x', $this->smarty->fetch($tpl));
} }
/**
* @expectedException SmartyCompilerException
* @expectedExceptionMessage nocache option not allowed
*/
public function testLeftDelimiterError()
{
$tpl = $this->smarty->createTemplate('string:x{ldelim nocache}x');
$this->assertEquals('x{x', $this->smarty->fetch($tpl));
}
} }