From b5ecb2f7a84fc53185572e2a603e8c49fdc85c7a Mon Sep 17 00:00:00 2001 From: Patrick Webster Date: Thu, 8 Sep 2011 17:54:59 -0500 Subject: [PATCH] [ticket/10322] Dynamic template include test PHPBB3-10322 --- tests/template/template_test.php | 7 +++++++ tests/template/templates/include_variable.html | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 tests/template/templates/include_variable.html diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 44baeaf8f0..a200148a29 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -162,6 +162,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case array(), 'value', ), + array( + 'include_variable.html', + array('FILE' => 'variable.html', 'VARIABLE' => 'value'), + array(), + array(), + "value\nvalue", + ), array( 'loop_vars.html', array(), diff --git a/tests/template/templates/include_variable.html b/tests/template/templates/include_variable.html new file mode 100644 index 0000000000..a126372195 --- /dev/null +++ b/tests/template/templates/include_variable.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file