From ee203b46328f3a0e1297197e50b30487d1eab248 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sun, 17 Jul 2011 01:42:42 -0400 Subject: [PATCH] [feature/template-engine] Test template DEFINE statements across files PHPBB3-9726 --- tests/template/template_test.php | 2 +- tests/template/templates/define.html | 3 +++ tests/template/templates/define_include.html | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 tests/template/templates/define_include.html diff --git a/tests/template/template_test.php b/tests/template/template_test.php index df3f927c22..2a5a53637d 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -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', diff --git a/tests/template/templates/define.html b/tests/template/templates/define.html index 82237d21a3..4459fffbe0 100644 --- a/tests/template/templates/define.html +++ b/tests/template/templates/define.html @@ -2,6 +2,9 @@ {$VALUE} {$VALUE} + +{$INCLUDED_VALUE} +{$VALUE} {$VALUE} diff --git a/tests/template/templates/define_include.html b/tests/template/templates/define_include.html new file mode 100644 index 0000000000..9c470c296a --- /dev/null +++ b/tests/template/templates/define_include.html @@ -0,0 +1,3 @@ +{$VALUE} + +{$INCLUDED_VALUE}