original_string: public final static function run($options = '') {
          global $CFG;
  
          $currentcwd = getcwd();
          chdir($CFG->dirroot);
          exec(self::get_behat_command() . ' ' . $options, $output, $code);
          chdir($currentcwd);
  
          return array($output, $code);
      }
code: public final static function run($options = '') {
          global $CFG;
  
          $currentcwd = getcwd();
          chdir($CFG->dirroot);
          exec(self::get_behat_command() . ' ' . $options, $output, $code);
          chdir($currentcwd);
  
          return array($output, $code);
      }
code_tokens: public final static function run ( $ options = '' ) { global $ CFG ; $ currentcwd = getcwd ( ) ; chdir ( $ CFG -> dirroot ) ; exec ( self :: get_behat_command ( ) . ' ' . $ options , $ output , $ code ) ; chdir ( $ currentcwd ) ; return array ( $ output , $ code ) ; }
docstring: Runs behat command with provided options
  
  Execution continues when the process finishes
  
  @param  string $options  Defaults to '' so tests would be executed
  @return array            CLI command outputs [0] => string, [1] => integer
docstring_tokens: Runs behat command with provided options