/** * Returns whether the given setting is active/allowed. * * @param string $key * * @return bool */ public function isActive($key) { switch ($key) { case 'codeCoverage': $isActive = extension_loaded('xdebug'); break; case 'runSeleniumTests': $isActive = $this->seleniumService->isSeleniumServerRunning(); break; case 'thisSettingIsAlwaysInactive': $isActive = false; break; default: // If the given setting is not covered by any of the cases, it should be considered active. $isActive = true; } return $isActive; }
/** * Returns the configured Selenium RC browser starting URL. * * This functions returns the TYPO3_SITE_URL if no URL is configured. * * @return string Selenium RC Browser URL, will not be empty */ protected function getSeleniumBrowserUrl() { return $this->seleniumService->getSeleniumBrowserUrl(); }