コード例 #1
0
 /**
  * (non-PHPdoc)
  * @see debugObject::__destruct()
  */
 public function __destruct()
 {
     while (!empty($this->_chronotrigger)) {
         $this->chrono_stop();
     }
     $this->_mdb2->disconnect();
     unset($this->_mdb2);
     parent::__destruct();
 }
コード例 #2
0
ファイル: Mdb2Connection.php プロジェクト: Trideon/gigolo
 public function Disconnect()
 {
     $this->_db->disconnect();
     $this->_db = null;
     $this->_connected = false;
 }
コード例 #3
0
ファイル: Sql.php プロジェクト: jubinpatel/horde
 /**
  * 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();
 }