mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11943] Add test for DEFINE $VAR = false
PHPBB3-11943
This commit is contained in:
parent
27e54f9473
commit
c609f25bae
2 changed files with 7 additions and 1 deletions
|
@ -158,7 +158,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((\$VALUE == 'abc'))\n!\$DOESNT_EXIST\n(!\$DOESNT_EXIST)\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?[]|foobar|",
|
||||
"xyz\nabc\n\$VALUE == 'abc'\n(\$VALUE == 'abc')\n((\$VALUE == 'abc'))\n!\$DOESNT_EXIST\n(!\$DOESNT_EXIST)\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?[]|foobar|false",
|
||||
),
|
||||
array(
|
||||
'define_advanced.html',
|
||||
|
|
|
@ -29,3 +29,9 @@ $VALUE == 'abc'
|
|||
<!-- DEFINE $VALUE = '' -->
|
||||
[{$VALUE}]
|
||||
<!-- DEFINE $TEST -->foobar<!-- ENDDEFINE -->|{$TEST}|
|
||||
<!-- DEFINE $VAR = false -->
|
||||
<!-- IF $VAR -->
|
||||
true
|
||||
<!-- ELSE -->
|
||||
false
|
||||
<!-- ENDIF -->
|
||||
|
|
Loading…
Add table
Reference in a new issue