protected function checkService() { $PCREInstalled = InstallUtil::checkPCRE(); if ($PCREInstalled) { $this->message = Zurmo::t('InstallModule', 'PCRE extension is loaded.'); return true; } else { $this->message = Zurmo::t('InstallModule', 'PCRE extension is not loaded.'); return false; } }
/** * Simple test to confirm the check doesnt break. */ public function testCheckPCRE() { $this->assertNotNull(InstallUtil::checkPCRE()); }