/** * @inheritdoc */ public function isInstalled() { $installed = false; try { $this->db->query('SELECT COUNT(*) FROM ' . $this->tableName); $installed = true; } catch (\Exception $e) { if ($e->getCode() != '42S02') { throw $e; } } return $installed; }
public function testConnect() { self::$db->query('SHOW TABLES')->execute(); }