From de51ec8a15d9371a709a897311b8eae79774250e Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 25 Nov 2008 00:46:22 +0000 Subject: [PATCH] Test empty filename git-svn-id: file:///svn/phpbb/trunk@9118 89ea8834-ac86-4346-8a33-228a782c2dd0 --- tests/template/template.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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));