original_string: public function isSeleniumServerRunning()
      {
          $seleniumServerIsRunning = false;
  
          $errorLevel = 0;
          $errorMessage = '';
          $timeout = 1;
          $socket = @fsockopen(
              $this->getSeleniumHost(),
              $this->getSeleniumPort(),
              $errorLevel,
              $errorMessage,
              $timeout
          );
  
          if ($socket !== false) {
              $seleniumServerIsRunning = true;
              fclose($socket);
          }
  
          return $seleniumServerIsRunning;
      }
code: public function isSeleniumServerRunning()
      {
          $seleniumServerIsRunning = false;
  
          $errorLevel = 0;
          $errorMessage = '';
          $timeout = 1;
          $socket = @fsockopen(
              $this->getSeleniumHost(),
              $this->getSeleniumPort(),
              $errorLevel,
              $errorMessage,
              $timeout
          );
  
          if ($socket !== false) {
              $seleniumServerIsRunning = true;
              fclose($socket);
          }
  
          return $seleniumServerIsRunning;
      }
code_tokens: public function isSeleniumServerRunning ( ) { $ seleniumServerIsRunning = false ; $ errorLevel = 0 ; $ errorMessage = '' ; $ timeout = 1 ; $ socket = @ fsockopen ( $ this -> getSeleniumHost ( ) , $ this -> getSeleniumPort ( ) , $ errorLevel , $ errorMessage , $ timeout ) ; if ( $ socket !== false ) { $ seleniumServerIsRunning = true ; fclose ( $ socket ) ; } return $ seleniumServerIsRunning ; }
docstring: Tests if the Selenium RC server is running.
  
  @return bool TRUE if the server is reachable by opening a socket, FALSE otherwise
docstring_tokens: Tests if the Selenium RC server is running .