aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_test.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-04-24 00:44:19 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-04-24 01:08:48 -0400
commitf29f32e0d67e88a271702264c37852406f4013d8 (patch)
tree6b028bf7ef585d534104849de4b9d1ee67331e07 /tests/template/template_test.php
parent203187a8410c411b0bdd90729e19c257ec3a7820 (diff)
downloadforums-f29f32e0d67e88a271702264c37852406f4013d8.tar
forums-f29f32e0d67e88a271702264c37852406f4013d8.tar.gz
forums-f29f32e0d67e88a271702264c37852406f4013d8.tar.bz2
forums-f29f32e0d67e88a271702264c37852406f4013d8.tar.xz
forums-f29f32e0d67e88a271702264c37852406f4013d8.zip
[feature/template-engine] Allow leading underscores in variable names.
Subsilver uses ._file in overall_header. PHPBB3-9726
Diffstat (limited to 'tests/template/template_test.php')
-rw-r--r--tests/template/template_test.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 665b7a81ab..a7c49927f1 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -236,6 +236,15 @@ class phpbb_template_template_test extends phpbb_test_case
"first\n0\n0\n2\nx\nset\n1\n1\n2\ny\nset\nlast",
),*/
array(
+ // Just like a regular loop but the name begins
+ // with an underscore
+ 'loop_underscore.html',
+ array(),
+ array(),
+ array(),
+ "noloop\nnoloop",
+ ),
+ array(
'lang.html',
array(),
array(),