db = NULL; } function TestGetTables() { if (empty($this->db)) return; $tables = $this->db->get_tables(); $this->assertTrue(is_array($tables)); } function TestGetSystemTables() { if (empty($this->db)) return; $tables = $this->db->get_system_tables(); $this->assertTrue(is_array($tables)); } function TestCreateTransaction() { if (empty($this->db)) return; $res = $this->db->beginTransaction(); $this->assertTrue($res); } function TestBackupData() { $this->assertTrue(is_string($this->db->util->backup_data())); } } // End of db_test.php