Update capture test

This commit is contained in:
uwetews
2016-04-14 21:06:51 +02:00
parent 66f6c54281
commit 6245f65402
2 changed files with 13 additions and 0 deletions

View File

@@ -106,4 +106,13 @@ class CompileCaptureTest extends PHPUnit_Smarty
$this->assertTrue($this->smarty->isCached('test_capture_nocache.tpl'));
$this->assertContains('foo 2', $this->smarty->fetch('test_capture_nocache.tpl'));
}
/*
* Test capture buffer names with uppercase
*/
public function testCapture10()
{
$result = $this->smarty->fetch('010_capture.tpl');
$this->assertContains('lowercase', $result);
$this->assertContains('uppercase', $result);
}
}

View File

@@ -0,0 +1,4 @@
{capture name='testname'}lowercase{/capture}
{capture name='testName'}uppercase{/capture}
{$smarty.capture.testname}
{$smarty.capture.testName}