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)
        );
    }
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)
        );
    }
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 ) ) ; }
Renders the select box as HTML.

@return string the rendered select tag
Renders the select box as HTML .