public static function UnishTestCase::tearDownAfterClass

8.0.x UnishTestCase.php public static UnishTestCase::tearDownAfterClass()
7.x UnishTestCase.php public static UnishTestCase::tearDownAfterClass()
master UnishTestCase.php public static UnishTestCase::tearDownAfterClass()

Runs after all tests in a class are run. Remove sandbox directory.

1 call to UnishTestCase::tearDownAfterClass()
UnitUnishTestCase::tearDownAfterClass in tests/Unish/UnitUnishTestCase.php
Runs after all tests in a class are run. Remove sandbox directory.
1 method overrides UnishTestCase::tearDownAfterClass()
UnitUnishTestCase::tearDownAfterClass in tests/Unish/UnitUnishTestCase.php
Runs after all tests in a class are run. Remove sandbox directory.

File

tests/Unish/UnishTestCase.php, line 57

Namespace

Unish

Class

UnishTestCase

Code

public static function tearDownAfterClass() {
  chdir(dirname(UNISH_SANDBOX));
  $dirty = getenv('UNISH_DIRTY');
  if (file_exists(UNISH_SANDBOX) && empty($dirty)) {
    unish_file_delete_recursive(UNISH_SANDBOX, TRUE);
  }
  self::$sites = array();
}