From f816e67c36a01faee3e1b3e82527f2d42db9a680 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 24 Nov 2008 11:46:28 +0000 Subject: [PATCH] Test is (even|odd) by y git-svn-id: file:///svn/phpbb/trunk@9110 89ea8834-ac86-4346-8a33-228a782c2dd0 --- tests/template/template.php | 7 +++++++ tests/template/templates/loop_expressions.html | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/template/templates/loop_expressions.html diff --git a/tests/template/template.php b/tests/template/template.php index 72ad065acf..89de67a453 100644 --- a/tests/template/template.php +++ b/tests/template/template.php @@ -203,6 +203,13 @@ class phpbb_template_template_test extends phpbb_test_case array('loop.inner'), "first\n0\n0\n2\nx\nset\n1\n1\n2\ny\nset\nlast", ), + array( + 'loop_expressions.html', + array(), + array('loop' => array(array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array())), + array(), + "on\non\non\non\noff\noff\noff\noff\non\non\non\non\n\noff\noff\noff\non\non\non\noff\noff\noff\non\non\non", + ), ); } diff --git a/tests/template/templates/loop_expressions.html b/tests/template/templates/loop_expressions.html new file mode 100644 index 0000000000..6bff53f388 --- /dev/null +++ b/tests/template/templates/loop_expressions.html @@ -0,0 +1,11 @@ + + +onoff + + + + + +onoff + +