mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-14 04:30:29 +01: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
@ -237,7 +237,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
array('VARIABLE' => 'variable.html'),
|
||||
array(),
|
||||
array(),
|
||||
'variable.htmlvariable.html',
|
||||
"variable.html\nvariable.html\nvariable.html",
|
||||
),
|
||||
array(
|
||||
'include_loop_define.html',
|
||||
|
@ -1,4 +1,8 @@
|
||||
<!-- DEFINE $DEF = '{VARIABLE}' -->
|
||||
<!-- INCLUDE {$DEF} -->
|
||||
|
||||
<!-- DEFINE $DEF_WITH_UNDERSCORES = '{VARIABLE}' -->
|
||||
<!-- INCLUDE {$DEF_WITH_UNDERSCORES} -->
|
||||
|
||||
<!-- DEFINE $DEF123 = '{VARIABLE}' -->
|
||||
<!-- INCLUDE {$DEF123} -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user