From 91eaae122f2671d14b5f83481c883daeaffed693 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 14 Apr 2014 18:56:34 +0200 Subject: [ticket/12382] Mark broken nested loop with include as incomplete PHPBB3-12382 --- tests/template/template_test.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/template/template_test.php') diff --git a/tests/template/template_test.php b/tests/template/template_test.php index c012f6c855..49804c26c5 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -329,6 +329,8 @@ class phpbb_template_template_test extends phpbb_template_template_test_case ), array(), "[bar|[bar|]][bar1|[bar1|[bar1|works]]]", + array(), + 'Included files are missing opened parent loops: PHPBB3-12382', ), /* Does not pass with the current implementation. array( @@ -373,8 +375,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case /** * @dataProvider template_data */ - public function test_template($file, array $vars, array $block_vars, array $destroy, $expected, $lang_vars = array()) + public function test_template($file, array $vars, array $block_vars, array $destroy, $expected, $lang_vars = array(), $incomplete_message = '') { + if ($incomplete_message) + { + $this->markTestIncomplete($incomplete_message); + } + $this->run_template($file, $vars, $block_vars, $destroy, $expected, $lang_vars); } -- cgit v1.2.1