diff options
author | Chris Smith <toonarmy@phpbb.com> | 2008-12-07 02:26:47 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2008-12-07 02:26:47 +0000 |
commit | 79f2dedb51b856f540464ba39c9d3cb839672cdb (patch) | |
tree | 0439a0df47a2abe72d6f4dfb8604e4e2043ef4f9 /tests/template | |
parent | c48f64ce94d59372b04bb85bbe7a226fbb512258 (diff) | |
download | forums-79f2dedb51b856f540464ba39c9d3cb839672cdb.tar forums-79f2dedb51b856f540464ba39c9d3cb839672cdb.tar.gz forums-79f2dedb51b856f540464ba39c9d3cb839672cdb.tar.bz2 forums-79f2dedb51b856f540464ba39c9d3cb839672cdb.tar.xz forums-79f2dedb51b856f540464ba39c9d3cb839672cdb.zip |
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
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/template.php | 11 |
1 files changed, 11 insertions, 0 deletions
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 */ |