aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-08-29 09:19:14 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-08-29 10:00:24 -0500
commit62e81d174d9d3dbd78baea36425720ed0fdaffb1 (patch)
tree3612f64fd9e6ee1ae1fd0ccb2b69810bac4de294 /tests/template
parentdcf82d9a5ae26de462687325b4d8553e4aaca7d4 (diff)
downloadforums-62e81d174d9d3dbd78baea36425720ed0fdaffb1.tar
forums-62e81d174d9d3dbd78baea36425720ed0fdaffb1.tar.gz
forums-62e81d174d9d3dbd78baea36425720ed0fdaffb1.tar.bz2
forums-62e81d174d9d3dbd78baea36425720ed0fdaffb1.tar.xz
forums-62e81d174d9d3dbd78baea36425720ed0fdaffb1.zip
[ticket/11816] Fix define/loop checks in IF statements containing parenthesis
PHPBB3-11816
Diffstat (limited to 'tests/template')
-rw-r--r--tests/template/template_test.php2
-rw-r--r--tests/template/templates/define.html3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 0a6b680100..0473218353 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -151,7 +151,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
array(),
array('test_loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())),
array(),
- "xyz\nabc\n\$VALUE == 'abc'abc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?",
+ "xyz\nabc\n\$VALUE == 'abc'\n(\$VALUE == 'abc')\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?",
),
array(
'define_advanced.html',
diff --git a/tests/template/templates/define.html b/tests/template/templates/define.html
index 66e874ca63..12842ad387 100644
--- a/tests/template/templates/define.html
+++ b/tests/template/templates/define.html
@@ -7,6 +7,9 @@ $VALUE != 'abc'
<!-- ELSEIF $VALUE == 'abc' -->
$VALUE == 'abc'
<!-- ENDIF -->
+<!-- IF ($VALUE == 'abc') -->
+($VALUE == 'abc')
+<!-- ENDIF -->
<!-- INCLUDE define_include.html -->
{$INCLUDED_VALUE}
{$VALUE}