aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/template/template.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/template/template.php b/tests/template/template.php
index 8e589161b1..baf936426d 100644
--- a/tests/template/template.php
+++ b/tests/template/template.php
@@ -251,7 +251,7 @@ class phpbb_template_template_test extends phpbb_test_case
);
}
- public function test_missing()
+ public function test_missing_file()
{
$filename = 'file_not_found.html';
@@ -262,6 +262,12 @@ class phpbb_template_template_test extends phpbb_test_case
$this->display('test');
}
+ public function test_empty_file()
+ {
+ $this->setExpectedTriggerError(E_USER_ERROR, sprintf("template->set_filenames: Empty filename specified for test"));
+ $this->template->set_filenames(array('test' => ''));
+ }
+
private function run_template($file, array $vars, array $block_vars, array $destroy, $expected, $cache_file)
{
$this->template->set_filenames(array('test' => $file));