1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-18 15:41:26 +02: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:
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
*/