/** * Runs after all tests in a class are run. Remove sandbox directory. */ public static function tearDownAfterClass() { if (file_exists(UNISH_SANDBOX)) { unish_file_delete_recursive(UNISH_SANDBOX, TRUE); } self::$sites = array(); }
/** * Runs after all tests in a class are run. Remove sandbox directory. */ public static function tearDownAfterClass() { $dirty = getenv('UNISH_DIRTY'); if (file_exists(UNISH_SANDBOX) && empty($dirty)) { unish_file_delete_recursive(UNISH_SANDBOX, TRUE); } self::$sites = array(); }