original_string: protected function renderSelect()
      {
          $options = $this->getOptions();
  
          $selectedExtensionStyle = '';
  
          $renderedOptionTags = [];
          foreach ($options as $option) {
              if (isset($option['selected']) && $option['selected'] === 'selected') {
                  $selectedExtensionStyle = $option['style'];
              }
              if ($option['value'] === \Tx_Phpunit_Testable::ALL_EXTENSIONS) {
                  $optionValue = $this->translate('all_extensions');
              } else {
                  $optionValue = $option['value'];
              }
              $renderedOptionTags[] = $this->renderTag('option', $option, $optionValue);
          }
  
          return $this->renderTag(
              'select',
              [
                  'name' => \Tx_Phpunit_Interface_Request::PARAMETER_NAMESPACE .
                      '[' . \Tx_Phpunit_Interface_Request::PARAMETER_KEY_TESTABLE . ']',
                  'onchange' => 'document.location = \'' . $this->action . '&' .
                      \Tx_Phpunit_Interface_Request::PARAMETER_NAMESPACE .
                      '[' . \Tx_Phpunit_Interface_Request::PARAMETER_KEY_TESTABLE . ']=' .
                      '\'+this.options[this.selectedIndex].value;',
                  'style' => $selectedExtensionStyle,
              ],
              implode(LF, $renderedOptionTags)
          );
      }
code: protected function renderSelect()
      {
          $options = $this->getOptions();
  
          $selectedExtensionStyle = '';
  
          $renderedOptionTags = [];
          foreach ($options as $option) {
              if (isset($option['selected']) && $option['selected'] === 'selected') {
                  $selectedExtensionStyle = $option['style'];
              }
              if ($option['value'] === \Tx_Phpunit_Testable::ALL_EXTENSIONS) {
                  $optionValue = $this->translate('all_extensions');
              } else {
                  $optionValue = $option['value'];
              }
              $renderedOptionTags[] = $this->renderTag('option', $option, $optionValue);
          }
  
          return $this->renderTag(
              'select',
              [
                  'name' => \Tx_Phpunit_Interface_Request::PARAMETER_NAMESPACE .
                      '[' . \Tx_Phpunit_Interface_Request::PARAMETER_KEY_TESTABLE . ']',
                  'onchange' => 'document.location = \'' . $this->action . '&' .
                      \Tx_Phpunit_Interface_Request::PARAMETER_NAMESPACE .
                      '[' . \Tx_Phpunit_Interface_Request::PARAMETER_KEY_TESTABLE . ']=' .
                      '\'+this.options[this.selectedIndex].value;',
                  'style' => $selectedExtensionStyle,
              ],
              implode(LF, $renderedOptionTags)
          );
      }
code_tokens: protected function renderSelect ( ) { $ options = $ this -> getOptions ( ) ; $ selectedExtensionStyle = '' ; $ renderedOptionTags = [ ] ; foreach ( $ options as $ option ) { if ( isset ( $ option [ 'selected' ] ) && $ option [ 'selected' ] === 'selected' ) { $ selectedExtensionStyle = $ option [ 'style' ] ; } if ( $ option [ 'value' ] === \ Tx_Phpunit_Testable :: ALL_EXTENSIONS ) { $ optionValue = $ this -> translate ( 'all_extensions' ) ; } else { $ optionValue = $ option [ 'value' ] ; } $ renderedOptionTags [ ] = $ this -> renderTag ( 'option' , $ option , $ optionValue ) ; } return $ this -> renderTag ( 'select' , [ 'name' => \ Tx_Phpunit_Interface_Request :: PARAMETER_NAMESPACE . '[' . \ Tx_Phpunit_Interface_Request :: PARAMETER_KEY_TESTABLE . ']' , 'onchange' => 'document.location = \'' . $ this -> action . '&' . \ Tx_Phpunit_Interface_Request :: PARAMETER_NAMESPACE . '[' . \ Tx_Phpunit_Interface_Request :: PARAMETER_KEY_TESTABLE . ']=' . '\'+this.options[this.selectedIndex].value;' , 'style' => $ selectedExtensionStyle , ] , implode ( LF , $ renderedOptionTags ) ) ; }
docstring: Renders the select box as HTML.
  
  @return string the rendered select tag
docstring_tokens: Renders the select box as HTML .