/** * Destructor */ public function __destruct() { if (!$this->db) { return; } $this->db->setQuery(MysqlQueryBuilder::dropDatabase('windwalker_foo_test', true))->execute(); $this->db->setQuery(MysqlQueryBuilder::dropDatabase('windwalker_bar_test', true))->execute(); parent::__destruct(); }
/** * Destructor */ public function __destruct() { try { $this->db->setQuery(MysqlQueryBuilder::dropTable('#__cloud', true))->execute(); } catch (\Exception $e) { // Do nothing } try { $this->db->setQuery(MysqlQueryBuilder::dropTable('#__wind', true))->execute(); } catch (\Exception $e) { // Do nothing } parent::__destruct(); }