diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-04-24 22:46:34 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-04-24 23:13:13 -0400 |
| commit | 5afc0b9b905814718ed0292fa5cc7342786c1fca (patch) | |
| tree | 0efab8e912045ebba7ef199dc45f58ef2892c1e5 /tests/template/template_test.php | |
| parent | e10d62badc2653d53f326cc1a3b8ab00617bc736 (diff) | |
| download | forums-5afc0b9b905814718ed0292fa5cc7342786c1fca.tar forums-5afc0b9b905814718ed0292fa5cc7342786c1fca.tar.gz forums-5afc0b9b905814718ed0292fa5cc7342786c1fca.tar.bz2 forums-5afc0b9b905814718ed0292fa5cc7342786c1fca.tar.xz forums-5afc0b9b905814718ed0292fa5cc7342786c1fca.zip | |
[feature/template-engine] Corrected an off-by-one error in nested namespaces.
This error resulted in a dot from the namespace being placed into
variable reference in compiled template code, thus creating bogus
compiled template code.
PHPBB3-9726
Diffstat (limited to 'tests/template/template_test.php')
| -rw-r--r-- | tests/template/template_test.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 6ac2f77a2c..5c43fe656e 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -277,7 +277,16 @@ class phpbb_template_template_test extends phpbb_test_case array(), array('outer' => array(array('VARIABLE' => 'x'), array('VARIABLE' => 'y')), 'outer.inner' => array(array('VARIABLE' => 'z'), array('VARIABLE' => 'zz'))), array(), - "top-level content", + // I don't completely understand this output, hopefully it's correct + "top-level content\nouter x\nouter y\ninner z\nfirst row\n\ninner zz", + ), + array( + 'loop_nested_deep_multilevel_ref.html', + array(), + array('outer' => array(array()), 'outer.middle' => array(array()), 'outer.middle.inner' => array(array('VARIABLE' => 'z'), array('VARIABLE' => 'zz'))), + array(), + // I don't completely understand this output, hopefully it's correct + "top-level content\nouter\n\ninner z\nfirst row\n\ninner zz", ), ); } |
