mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
Remove cache files after each test, ensure they are not included in the coverage report
git-svn-id: file:///svn/phpbb/trunk@9181 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c48f64ce94
commit
79f2dedb51
1 changed files with 11 additions and 0 deletions
|
@ -65,6 +65,17 @@ class phpbb_template_template_test extends phpbb_test_case
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function tearDown()
|
||||||
|
{
|
||||||
|
if (is_object($this->template))
|
||||||
|
{
|
||||||
|
foreach (glob($this->template->cachepath . '*') as $file)
|
||||||
|
{
|
||||||
|
unlink($file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo put test data into templates/xyz.test
|
* @todo put test data into templates/xyz.test
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue