[feature/template-engine] Test template DEFINE statements across files

PHPBB3-9726
This commit is contained in:
Nils Adermann 2011-07-17 01:42:42 -04:00 committed by Oleg Pudeyev
parent bf34264f4f
commit ee203b4632
3 changed files with 7 additions and 1 deletions

View file

@ -130,7 +130,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
array(),
array('loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())),
array(),
"xyz\nabc",
"xyz\nabc\nabc\nbar\nbar\nabc",
),
array(
'expressions.html',

View file

@ -2,6 +2,9 @@
{$VALUE}
<!-- DEFINE $VALUE = 'abc' -->
{$VALUE}
<!-- INCLUDE define_include.html -->
{$INCLUDED_VALUE}
{$VALUE}
<!-- UNDEFINE $VALUE -->
{$VALUE}
<!-- DEFINE $VALUE -->

View file

@ -0,0 +1,3 @@
{$VALUE}
<!-- DEFINE $INCLUDED_VALUE = 'bar' -->
{$INCLUDED_VALUE}