[feature/twig] Add test to make sure nested loops get the correct S_ROW_COUNT

PHPBB3-11598
This commit is contained in:
Nathaniel Guse 2013-07-04 10:40:14 -05:00
parent 84e0943c7b
commit 81f27fd87e
2 changed files with 13 additions and 0 deletions

View file

@ -125,6 +125,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
array(), array(),
"101234561\nx\n101234561\nx\n101234561\nx\n1234561\nx\n1\nx\n101\nx\n234\nx\n10\nx\n561\nx\n561", "101234561\nx\n101234561\nx\n101234561\nx\n1234561\nx\n1\nx\n101\nx\n234\nx\n10\nx\n561\nx\n561",
), ),
array(
'loop_nested2.html',
array(),
array('outer' => array(array(), array()), 'outer.middle' => array(array(), array())),
array(),
"o0o1m01m11",
),
array( array(
'define.html', 'define.html',
array(), array(),

View file

@ -0,0 +1,6 @@
<!-- BEGIN outer -->
o{outer.S_ROW_COUNT}
<!-- BEGIN middle -->
m{outer.middle.S_ROW_COUNT}{outer.S_ROW_COUNT}
<!-- END middle -->
<!-- END outer -->