mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Test empty filename
git-svn-id: file:///svn/phpbb/trunk@9118 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7b5dc8f3c5
commit
de51ec8a15
1 changed files with 7 additions and 1 deletions
|
@ -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';
|
$filename = 'file_not_found.html';
|
||||||
|
|
||||||
|
@ -262,6 +262,12 @@ class phpbb_template_template_test extends phpbb_test_case
|
||||||
$this->display('test');
|
$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)
|
private function run_template($file, array $vars, array $block_vars, array $destroy, $expected, $cache_file)
|
||||||
{
|
{
|
||||||
$this->template->set_filenames(array('test' => $file));
|
$this->template->set_filenames(array('test' => $file));
|
||||||
|
|
Loading…
Add table
Reference in a new issue