/** * Drops all test data DB's when object is destructed. * Used to keep our DB in its original format. * * @access public * */ public function __destruct() { try { if ($this->_fixMan->tablesPresent()) { $this->_fixMan->truncateTable(); } $this->_fixMan = null; } catch (Exception $e) { echo $e->getMessage(); } }
/** * Drops our development DB tables * * @access public * @return bool * */ public function drop() { if ($this->_fixMan->tablesPresent()) { return $this->_fixMan->dropTables(); } return false; }