diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-06 09:04:40 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-06 09:04:40 -0500 |
commit | 11317ef261c7811ea137d19ee38593d289ea6150 (patch) | |
tree | dc2d164444d777a0263b9eacfebc398d6899c9a8 /tests | |
parent | 0c5a39a3ed382bef37005e59de66120e3cf205fa (diff) | |
download | forums-11317ef261c7811ea137d19ee38593d289ea6150.tar forums-11317ef261c7811ea137d19ee38593d289ea6150.tar.gz forums-11317ef261c7811ea137d19ee38593d289ea6150.tar.bz2 forums-11317ef261c7811ea137d19ee38593d289ea6150.tar.xz forums-11317ef261c7811ea137d19ee38593d289ea6150.zip |
[ticket/11816] !$DOESNT_EXIST test
PHPBB3-11816
Diffstat (limited to 'tests')
-rw-r--r-- | tests/template/template_test.php | 2 | ||||
-rw-r--r-- | tests/template/templates/define.html | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 94289842df..b41193d59e 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'\n(\$VALUE == 'abc')\n(!\$DOESNT_EXIST)\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?", + "xyz\nabc\n\$VALUE == 'abc'\n(\$VALUE == 'abc')\n!\$DOESNT_EXIST\n(!\$DOESNT_EXIST)\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?", ), array( 'define_advanced.html', diff --git a/tests/template/templates/define.html b/tests/template/templates/define.html index e96d14e813..a56fece912 100644 --- a/tests/template/templates/define.html +++ b/tests/template/templates/define.html @@ -10,6 +10,9 @@ $VALUE == 'abc' <!-- IF ($VALUE == 'abc') --> ($VALUE == 'abc') <!-- ENDIF --> +<!-- IF !$DOESNT_EXIST --> +!$DOESNT_EXIST +<!-- ENDIF --> <!-- IF (!$DOESNT_EXIST) --> (!$DOESNT_EXIST) <!-- ENDIF --> |