function CloseSetup() { if ($this->database != 0) { MetabaseCloseSetup($this->database); $this->database = 0; } }
function disconnect() { if ($this->db != null) { MetabaseCloseSetup($this->db); } $this->_afterDisconnect(); return true; }
} } else { $success = 0; } } if ($success && $pass) { $passed++; echo "OK.{$eol}"; } } if (!$success && !strcmp($error, "")) { $error = MetabaseError($database); } if (isset($driver_arguments["CaptureDebug"])) { $debug_output .= MetabaseDebugOutput($database); } MetabaseCloseSetup($database); } } else { $error = $manager->error; } if (strcmp($error, "")) { echo "Error: {$error}{$eol}"; } else { echo $failed == 0 ? "Passed all the {$passed} tests that were performed!{$eol}" : ($passed == 1 ? "Passed one test" : "{$passed} tests passed") . ", " . ($failed == 1 ? "Failed one test" : "{$failed} tests failed") . "!{$eol}"; } if (isset($driver_arguments["CaptureDebug"])) { echo $debug_output; } echo "Exiting.{$eol}"; flush();