mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11843] Added newlines and included numbers in the DEFINE vars test
Per suggestion of nickvergessen, I added newlines in the DEFINE variables with underscores test. Now if the test fails, it's easier to spot which part is failing. Also added a test for DEFINE variables containing numbers. PHPBB3-11843
This commit is contained in:
parent
45ecbae1ed
commit
658f6e2045
2 changed files with 5 additions and 1 deletions
|
@ -237,7 +237,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||||
array('VARIABLE' => 'variable.html'),
|
array('VARIABLE' => 'variable.html'),
|
||||||
array(),
|
array(),
|
||||||
array(),
|
array(),
|
||||||
'variable.htmlvariable.html',
|
"variable.html\nvariable.html\nvariable.html",
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'include_loop_define.html',
|
'include_loop_define.html',
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
<!-- DEFINE $DEF = '{VARIABLE}' -->
|
<!-- DEFINE $DEF = '{VARIABLE}' -->
|
||||||
<!-- INCLUDE {$DEF} -->
|
<!-- INCLUDE {$DEF} -->
|
||||||
|
|
||||||
<!-- DEFINE $DEF_WITH_UNDERSCORES = '{VARIABLE}' -->
|
<!-- DEFINE $DEF_WITH_UNDERSCORES = '{VARIABLE}' -->
|
||||||
<!-- INCLUDE {$DEF_WITH_UNDERSCORES} -->
|
<!-- INCLUDE {$DEF_WITH_UNDERSCORES} -->
|
||||||
|
|
||||||
|
<!-- DEFINE $DEF123 = '{VARIABLE}' -->
|
||||||
|
<!-- INCLUDE {$DEF123} -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue