public function remove() { if ($this->db->tableExists($this->tableName)) { $query = 'DELETE FROM :::table WHERE parent=:parent'; $bindings = array(':::table' => $this->tableName, ':parent' => $this->parent); $this->db->execute($query, $bindings); if ($this->getEntireSize() === 0) { $this->db->dropTable($this->tableName); } } }
public function remove() { if ($this->db->tableExists($this->table)) { $this->db->dropTable($this->table); } }
protected function tearDown() { if (self::$db->tableExists('mod_mock_testdbstorage')) { self::$db->dropTable('mod_mock_testdbstorage'); } }