aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_test.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-04 10:40:14 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-04 10:40:14 -0500
commit81f27fd87ee2e8ffc1ad1ad06c5b255c5436e86c (patch)
treed2acaf41a4fcffcd8c839fa8f1f804099b3c2f01 /tests/template/template_test.php
parent84e0943c7bee5061bc53aed2a14f82751d238bf8 (diff)
downloadforums-81f27fd87ee2e8ffc1ad1ad06c5b255c5436e86c.tar
forums-81f27fd87ee2e8ffc1ad1ad06c5b255c5436e86c.tar.gz
forums-81f27fd87ee2e8ffc1ad1ad06c5b255c5436e86c.tar.bz2
forums-81f27fd87ee2e8ffc1ad1ad06c5b255c5436e86c.tar.xz
forums-81f27fd87ee2e8ffc1ad1ad06c5b255c5436e86c.zip
[feature/twig] Add test to make sure nested loops get the correct S_ROW_COUNT
PHPBB3-11598
Diffstat (limited to 'tests/template/template_test.php')
-rw-r--r--tests/template/template_test.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 1b3dda9b2a..4970ce0363 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -126,6 +126,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
"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(
'define.html',
array(),
array('loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())),