You are here

public function PHPExcelTest::tearDown in PHPExcel 7.3

Same name and namespace in other branches
  1. 8.3 tests/phpexcel.test \PHPExcelTest::tearDown()
  2. 6.2 tests/phpexcel.test \PHPExcelTest::tearDown()
  3. 6 tests/phpexcel.test \PHPExcelTest::tearDown()
  4. 7.2 tests/phpexcel.test \PHPExcelTest::tearDown()

Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

Overrides DrupalWebTestCase::tearDown

File

tests/phpexcel.test, line 35
Defines the test case for phpexcel

Class

PHPExcelTest
@file Defines the test case for phpexcel

Code

public function tearDown() {
  if (!empty($this->test_files)) {
    foreach ($this->test_files as $file) {
      @unlink($file);
    }
  }
  parent::tearDown();
}