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:
Chris Smith 2008-12-07 02:26:47 +00:00
parent c48f64ce94
commit 79f2dedb51

View file

@ -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
*/ */