mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Trimming loop variables
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9583 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5334a8b726
commit
fb15daa828
2 changed files with 8 additions and 1 deletions
|
|
@ -194,6 +194,11 @@ class TemplateHandlerTest extends PHPUnit_Framework_TestCase
|
|||
'<br cond="$var==\'foo\'" />bar',
|
||||
'<?php if($__Context->var==\'foo\'){ ?><br /><?php } ?>bar'
|
||||
),
|
||||
// issue 188
|
||||
array(
|
||||
'<div cond="$ii < $nn" loop="$dummy => $k, $v">Hello, world!</div>',
|
||||
'<?php if($__Context->ii < $__Context->nn){ ?><?php if($__Context->dummy&&count($__Context->dummy))foreach($__Context->dummy as $__Context->k=>$__Context->v){ ?><div>Hello, world!</div><?php }} ?>'
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue