mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02: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:
@@ -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} -->
|
||||
|
Reference in New Issue
Block a user