{make_nocache} add space test

This commit is contained in:
uwetews
2016-10-19 20:40:41 +02:00
parent 411390b579
commit bfb502b633
2 changed files with 12 additions and 0 deletions

View File

@@ -294,5 +294,16 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
$this->assertEquals($this->strip('uwe\'s'), $this->strip($this->smarty->fetch('002_test_backslash.tpl'))); $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')));
}
} }

View File

@@ -0,0 +1 @@
{make_nocache $foo}{$foo nocache}