/** * (non-PHPdoc) * @see debugObject::__destruct() */ public function __destruct() { while (!empty($this->_chronotrigger)) { $this->chrono_stop(); } $this->_mdb2->disconnect(); unset($this->_mdb2); parent::__destruct(); }
public function Disconnect() { $this->_db->disconnect(); $this->_db = null; $this->_connected = false; }
/** * Tears down the test environment after the test is run. * * Should remove the testuser created during testSetup and all its data. */ public function testTearDown() { $this->_cleanUser($this->_user); $this->_db->disconnect(); }