diff options
| author | Chris Smith <toonarmy@phpbb.com> | 2008-11-23 19:51:52 +0000 |
|---|---|---|
| committer | Chris Smith <toonarmy@phpbb.com> | 2008-11-23 19:51:52 +0000 |
| commit | 500eb05c48e652233a6ede6aec94b675f109dd1a (patch) | |
| tree | 44ce33b56fa9038148e86ccc7d4dbd74cbb45677 /tests/template/template.php | |
| parent | 3f11fc12ac8bc81dad08326e8d1cc445fbbe6855 (diff) | |
| download | forums-500eb05c48e652233a6ede6aec94b675f109dd1a.tar forums-500eb05c48e652233a6ede6aec94b675f109dd1a.tar.gz forums-500eb05c48e652233a6ede6aec94b675f109dd1a.tar.bz2 forums-500eb05c48e652233a6ede6aec94b675f109dd1a.tar.xz forums-500eb05c48e652233a6ede6aec94b675f109dd1a.zip | |
test advanced loop constructs
git-svn-id: file:///svn/phpbb/trunk@9099 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'tests/template/template.php')
| -rw-r--r-- | tests/template/template.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/template/template.php b/tests/template/template.php index 0cbfadb61a..7c1bcbf75a 100644 --- a/tests/template/template.php +++ b/tests/template/template.php @@ -126,6 +126,12 @@ class phpbb_template_template_test extends PHPUnit_Framework_TestCase "first\n0\n0\n2\nx\n1\n1\n2\ny\nlast\n0\n1", ), array( + 'loop_advanced.html', + array(), + array('loop' => array(array(), array(), array(), array(), array(), array(), array())), + "101234561\n101234561\n101234561\n1234561\n1\n101\n234\n10\n561\n561", + ), + array( 'define.html', array(), array(), @@ -143,7 +149,7 @@ class phpbb_template_template_test extends PHPUnit_Framework_TestCase array(), 'value', ), - ); + ); } private function run_template($file, array $vars, array $block_vars, $expected, $cache_file) |
