protected function checkService() { $passed = true; $threadStackValue = null; if (!InstallUtil::checkDatabaseThreadStackValue('mysql', $this->form->databaseHostname, $this->form->databaseUsername, $this->form->databasePassword, $this->form->databasePort, $this->minimumRequiredThreadStackValue, $threadStackValue)) { if ($threadStackValue == null) { $this->message = Zurmo::t('InstallModule', 'Could not get value of database thread_stack.'); } else { $this->message = Zurmo::t('InstallModule', 'Database thread_stack value is:') . ' '; $this->message .= $threadStackValue . ' '; $this->message .= Zurmo::t('InstallModule', 'minimum requirement is:') . ' '; $this->message .= $this->minimumRequiredThreadStackValue; } $passed = false; } else { $this->message = Zurmo::t('InstallModule', 'Database thread_stack value meets minimum requirement.'); } return $passed; }
/** * Simple test to confirm the check doesnt break. */ public function testCheckThreadStackValue() { $minimumRequiredThreadStackValue = 524288; $threadStackValue = null; $this->assertNotNull(InstallUtil::checkDatabaseThreadStackValue('mysql', $this->temporaryDatabaseHostname, $this->temporaryDatabaseUsername, $this->temporaryDatabasePassword, $this->temporaryDatabasePort, $minimumRequiredThreadStackValue, $threadStackValue)); }