From 79f2dedb51b856f540464ba39c9d3cb839672cdb Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 7 Dec 2008 02:26:47 +0000 Subject: [PATCH] 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 --- tests/template/template.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/template/template.php b/tests/template/template.php index b315b20c53..7f4c4ae319 100644 --- a/tests/template/template.php +++ b/tests/template/template.php @@ -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 */