diff options
author | 2014-03-13 19:48:07 -0500 | |
---|---|---|
committer | 2014-03-13 19:48:07 -0500 | |
commit | a45aa2e5a009747f61b2c7546fbbc64fdd5f6798 (patch) | |
tree | bd63bee31f26696e964f432bcf5e5483f4d610f0 /tests/template/template_test.php | |
parent | Merge remote-tracking branch 'remotes/upstream/develop-olympus' into develop (diff) | |
download | phpbb-a45aa2e5a009747f61b2c7546fbbc64fdd5f6798.tar.gz phpbb-a45aa2e5a009747f61b2c7546fbbc64fdd5f6798.tar.bz2 phpbb-a45aa2e5a009747f61b2c7546fbbc64fdd5f6798.zip |
[ticket/10288] Test to make sure included templates have proper variable scope
PHPBB3-10288
Diffstat (limited to 'tests/template/template_test.php')
-rw-r--r-- | tests/template/template_test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index aaf55fd15c..2b7be9746e 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -306,6 +306,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case array(), "nonexistent = 0\n! nonexistent\n\nempty = 0\n! empty\nloop\n\nin loop", ), + array( + 'loop_include.html', + array(), + array('test_loop' => array(array('foo' => 'bar'), array('foo' => 'bar1'))), + array(), + "barbarbar1bar1", + ), /* Does not pass with the current implementation. array( 'loop_reuse.html', |