aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-14 18:56:34 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-14 18:56:34 +0200
commit91eaae122f2671d14b5f83481c883daeaffed693 (patch)
tree0fd9ed5ce077d73fd001d0ae8c1dba81078e75e9 /tests/template/template_test.php
parentb3a758a43b3b8ef9dbb3b0a66b9c708639cdd6d9 (diff)
downloadforums-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.php9
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);
}