mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Update capture test
This commit is contained in:
@@ -106,4 +106,13 @@ class CompileCaptureTest extends PHPUnit_Smarty
|
|||||||
$this->assertTrue($this->smarty->isCached('test_capture_nocache.tpl'));
|
$this->assertTrue($this->smarty->isCached('test_capture_nocache.tpl'));
|
||||||
$this->assertContains('foo 2', $this->smarty->fetch('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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,4 @@
|
|||||||
|
{capture name='testname'}lowercase{/capture}
|
||||||
|
{capture name='testName'}uppercase{/capture}
|
||||||
|
{$smarty.capture.testname}
|
||||||
|
{$smarty.capture.testName}
|
Reference in New Issue
Block a user