public function tearDown() { if (!$this->db || MDB2::isError($this->db)) { return; } $this->clearTables(); $this->db->disconnect(); $this->db->popExpect(); unset($this->db); }