diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-14 18:56:34 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-14 18:56:34 +0200 |
commit | 91eaae122f2671d14b5f83481c883daeaffed693 (patch) | |
tree | 0fd9ed5ce077d73fd001d0ae8c1dba81078e75e9 /tests/template/template_test.php | |
parent | b3a758a43b3b8ef9dbb3b0a66b9c708639cdd6d9 (diff) | |
download | forums-91eaae122f2671d14b5f83481c883daeaffed693.tar forums-91eaae122f2671d14b5f83481c883daeaffed693.tar.gz forums-91eaae122f2671d14b5f83481c883daeaffed693.tar.bz2 forums-91eaae122f2671d14b5f83481c883daeaffed693.tar.xz forums-91eaae122f2671d14b5f83481c883daeaffed693.zip |
[ticket/12382] Mark broken nested loop with include as incomplete
PHPBB3-12382
Diffstat (limited to 'tests/template/template_test.php')
-rw-r--r-- | tests/template/template_test.php | 9 |
1 files changed, 8 insertions, 1 deletions
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); } |