mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Update
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
/**
|
/**
|
||||||
* class for delimiter tags tests
|
* class for delimiter tags tests
|
||||||
*
|
*
|
||||||
* @runTestsInSeparateProcess
|
* @run TestsInSeparateProcess
|
||||||
* @preserveGlobalState disabled
|
* @preserveGlobalState disabled
|
||||||
* @backupStaticAttributes enabled
|
* @backupStaticAttributes enabled
|
||||||
*/
|
*/
|
||||||
@@ -25,10 +25,11 @@ class CompileDelimiterTest extends PHPUnit_Smarty
|
|||||||
{
|
{
|
||||||
$this->cleanDirs();
|
$this->cleanDirs();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test delimiter tag test
|
* test delimiter tag test
|
||||||
*/
|
*/
|
||||||
public function testLeftDelimiter()
|
public function testLeftDelimiter()
|
||||||
{
|
{
|
||||||
$tpl = $this->smarty->createTemplate('string:x{ldelim}x');
|
$tpl = $this->smarty->createTemplate('string:x{ldelim}x');
|
||||||
$this->assertEquals('x{x', $this->smarty->fetch($tpl));
|
$this->assertEquals('x{x', $this->smarty->fetch($tpl));
|
||||||
@@ -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));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user