mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
[ticket/12382] Mark broken nested loop with include as incomplete
PHPBB3-12382
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user