diff options
| author | Chris Smith <toonarmy@phpbb.com> | 2008-11-25 00:50:21 +0000 |
|---|---|---|
| committer | Chris Smith <toonarmy@phpbb.com> | 2008-11-25 00:50:21 +0000 |
| commit | d57b4d0b48edcac445b560e0297c997c83a58ec0 (patch) | |
| tree | efeb5bd093fcfb60fa44cf86ec5edd99cd252f63 | |
| parent | de51ec8a15d9371a709a897311b8eae79774250e (diff) | |
| download | forums-d57b4d0b48edcac445b560e0297c997c83a58ec0.tar forums-d57b4d0b48edcac445b560e0297c997c83a58ec0.tar.gz forums-d57b4d0b48edcac445b560e0297c997c83a58ec0.tar.bz2 forums-d57b4d0b48edcac445b560e0297c997c83a58ec0.tar.xz forums-d57b4d0b48edcac445b560e0297c997c83a58ec0.zip | |
Test empty filename and invalid handle
git-svn-id: file:///svn/phpbb/trunk@9119 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rw-r--r-- | tests/template/template.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/template/template.php b/tests/template/template.php index baf936426d..b315b20c53 100644 --- a/tests/template/template.php +++ b/tests/template/template.php @@ -268,6 +268,13 @@ class phpbb_template_template_test extends phpbb_test_case $this->template->set_filenames(array('test' => '')); } + public function test_invalid_handle() + { + $this->setExpectedTriggerError(E_USER_ERROR, sprintf("template->_tpl_load(): No file specified for handle test")); + $this->display('test'); + } + + private function run_template($file, array $vars, array $block_vars, array $destroy, $expected, $cache_file) { $this->template->set_filenames(array('test' => $file)); |
