mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
{make_nocache} add space test
This commit is contained in:
@@ -294,5 +294,16 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
|
||||
$this->assertEquals($this->strip('uwe\'s'), $this->strip($this->smarty->fetch('002_test_backslash.tpl')));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test {make_nocache} with values containing spaces
|
||||
*
|
||||
* @preserveGlobalState disabled
|
||||
*/
|
||||
public function testMakeNocache_003()
|
||||
{
|
||||
$this->smarty->setCaching(true);
|
||||
$this->smarty->assign('foo', 'the Smarty template engine');
|
||||
$this->assertEquals($this->strip('the Smarty template engine'), $this->strip($this->smarty->fetch('003_test_spaces.tpl')));
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1 @@
|
||||
{make_nocache $foo}{$foo nocache}
|
Reference in New Issue
Block a user