diff options
author | Chris Smith <toonarmy@phpbb.com> | 2008-11-25 00:46:22 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2008-11-25 00:46:22 +0000 |
commit | de51ec8a15d9371a709a897311b8eae79774250e (patch) | |
tree | 5aac8a22a8e92598bc0adcc2fca7b08cd2ac4521 /tests/template | |
parent | 7b5dc8f3c5cbde5939602100e16319c89a53d0c5 (diff) | |
download | forums-de51ec8a15d9371a709a897311b8eae79774250e.tar forums-de51ec8a15d9371a709a897311b8eae79774250e.tar.gz forums-de51ec8a15d9371a709a897311b8eae79774250e.tar.bz2 forums-de51ec8a15d9371a709a897311b8eae79774250e.tar.xz forums-de51ec8a15d9371a709a897311b8eae79774250e.zip |
Test empty filename
git-svn-id: file:///svn/phpbb/trunk@9118 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/template.php | 8 |
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)); |