This commit is contained in:
bzick
2016-08-27 22:30:34 +03:00
parent 514b0b6769
commit cd4f688088
4 changed files with 108 additions and 3 deletions

View File

@ -1406,6 +1406,11 @@ class TemplateTest extends TestCase
$a,
'Foreach: 0 => 1, 1 => 2, 2 => 3, end'
),
array(
'Foreach: {foreach 1..3 as $k => $e last=$l} {$k} => {$e}, {if $l}last{/if} {/foreach} end',
$a,
'Foreach: 0 => 1, 1 => 2, 2 => 3, last end'
),
array(
'Foreach: {foreach $.get.items as $e} {$e}, {/foreach} end',
$a,