aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-07-03 12:44:33 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-07-03 12:44:33 +0200
commita0e00889d1a03804625522405824ac8cbce15c22 (patch)
tree800d813de85eb59b7dc9b8922322c7c680ecfc97 /tests
parentb0a3f2dc8f528526d02b04835bb6bda92421fe4b (diff)
parent7ef983b4267db3a71c849a62f91fa1b0a94a78bb (diff)
downloadforums-a0e00889d1a03804625522405824ac8cbce15c22.tar
forums-a0e00889d1a03804625522405824ac8cbce15c22.tar.gz
forums-a0e00889d1a03804625522405824ac8cbce15c22.tar.bz2
forums-a0e00889d1a03804625522405824ac8cbce15c22.tar.xz
forums-a0e00889d1a03804625522405824ac8cbce15c22.zip
Merge pull request #2670 from Nicofuma/ticket/12781
[ticket/12781] Template regex for IF catch too many things * Nicofuma/ticket/12781: [ticket/12781] Add tests [ticket/12781] Template regex for IF catch too many things
Diffstat (limited to 'tests')
-rw-r--r--tests/template/template_test.php7
-rw-r--r--tests/template/templates/if_nested_tags.html1
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 4f5b7629d5..0bbfe3848d 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -352,6 +352,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
array(),
"13FOOBAR|foobar",
),
+ array(
+ 'if_nested_tags.html',
+ array('S_VALUE' => true,),
+ array(),
+ array(),
+ 'inner_value',
+ ),
);
}
diff --git a/tests/template/templates/if_nested_tags.html b/tests/template/templates/if_nested_tags.html
new file mode 100644
index 0000000000..0348a31a8d
--- /dev/null
+++ b/tests/template/templates/if_nested_tags.html
@@ -0,0 +1 @@
+<!-- IF S_VALUE --><!-- DEFINE $INNER_VALUE = 'inner_value' --><!-- ENDIF -->{$INNER_VALUE}