diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-19 13:34:08 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-19 13:34:08 -0500 |
commit | 1c59ad87b026794e44ce6c7561feabd3eb7bf165 (patch) | |
tree | 2b5bd0aa03c3bf73b30b13c3a28f95ab039717ce /tests/template | |
parent | b92f660ed389414a1d8550a5ba92804f7151eb79 (diff) | |
download | forums-1c59ad87b026794e44ce6c7561feabd3eb7bf165.tar forums-1c59ad87b026794e44ce6c7561feabd3eb7bf165.tar.gz forums-1c59ad87b026794e44ce6c7561feabd3eb7bf165.tar.bz2 forums-1c59ad87b026794e44ce6c7561feabd3eb7bf165.tar.xz forums-1c59ad87b026794e44ce6c7561feabd3eb7bf165.zip |
[ticket/11718] Quick test for fixes in ELSEIF
PHPBB3-11718
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/template_test.php | 2 | ||||
-rw-r--r-- | tests/template/templates/define.html | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 802f0c19ba..86af97cc84 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('loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())), array(), - "xyz\nabc\nabc\nbar\nbar\nabc", + "xyz\nabc\n\$VALUE == 'abc'\nabc\nbar\nbar\nabc", ), array( 'define_advanced.html', diff --git a/tests/template/templates/define.html b/tests/template/templates/define.html index 4e6d0ee793..5b8ed9ac40 100644 --- a/tests/template/templates/define.html +++ b/tests/template/templates/define.html @@ -2,6 +2,11 @@ {$VALUE} <!-- DEFINE $VALUE = 'abc' --> {$VALUE} +<!-- IF $VALUE != 'abc' --> +$VALUE != 'abc' +<!-- ELSEIF $VALUE == 'abc' --> +$VALUE == 'abc' +<!-- ENDIF --> <!-- INCLUDE define_include.html --> {$INCLUDED_VALUE} {$VALUE} |