diff --git a/tests/UnitTests/TemplateSource/TagTests/Capture/CompileCaptureTest.php b/tests/UnitTests/TemplateSource/TagTests/Capture/CompileCaptureTest.php index c2e9b30a..12e9812a 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Capture/CompileCaptureTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/Capture/CompileCaptureTest.php @@ -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); + } } diff --git a/tests/UnitTests/TemplateSource/TagTests/Capture/templates/010_capture.tpl b/tests/UnitTests/TemplateSource/TagTests/Capture/templates/010_capture.tpl new file mode 100644 index 00000000..56bc97cf --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Capture/templates/010_capture.tpl @@ -0,0 +1,4 @@ +{capture name='testname'}lowercase{/capture} +{capture name='testName'}uppercase{/capture} +{$smarty.capture.testname} +{$smarty.capture.testName}