Test empty filename

git-svn-id: file:///svn/phpbb/trunk@9118 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Chris Smith 2008-11-25 00:46:22 +00:00
parent 7b5dc8f3c5
commit de51ec8a15

View file

@ -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));