public function main()
    {
        LibraryLoader::includeAll();

        $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
        $this->doc->backPath = $GLOBALS['BACK_PATH'];

        if ($GLOBALS['BE_USER']->user['admin']) {
            $this->doc->bodyTagAdditions = 'id="doc3"';

            $this->addAdditionalHeaderData();

            $this->cleanOutputBuffers();
            $this->outputService->output(
                $this->doc->startPage($this->translate('title')) .
                $this->doc->header(\PHPUnit_Runner_Version::getVersionString())
            );

            $this->renderRunTests();

            $this->outputService->output(
                $this->doc->section(
                    $this->translate('shortcuts.title'),
                    '<p>' . $this->translate('shortcuts.text') . '</p>
                    <p>' . $this->translate('shortcuts.browser_dependency') . '</p>
                    <ul>
                    <li>' . $this->translate('shortcuts.browser_safari_ie') . '</li>
                    <li>' . $this->translate('shortcuts.browser_firefox') . '</li>
                    </ul>'
                )
            );
        } else {
            $this->outputService->output(
                $this->doc->startPage($this->translate('title')) .
                $this->doc->header($this->translate('title')) .
                $this->translate('admin_rights_needed')
            );
        }

        $this->outputService->output($this->doc->endPage());
    }
public function main()
    {
        LibraryLoader::includeAll();

        $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
        $this->doc->backPath = $GLOBALS['BACK_PATH'];

        if ($GLOBALS['BE_USER']->user['admin']) {
            $this->doc->bodyTagAdditions = 'id="doc3"';

            $this->addAdditionalHeaderData();

            $this->cleanOutputBuffers();
            $this->outputService->output(
                $this->doc->startPage($this->translate('title')) .
                $this->doc->header(\PHPUnit_Runner_Version::getVersionString())
            );

            $this->renderRunTests();

            $this->outputService->output(
                $this->doc->section(
                    $this->translate('shortcuts.title'),
                    '<p>' . $this->translate('shortcuts.text') . '</p>
                    <p>' . $this->translate('shortcuts.browser_dependency') . '</p>
                    <ul>
                    <li>' . $this->translate('shortcuts.browser_safari_ie') . '</li>
                    <li>' . $this->translate('shortcuts.browser_firefox') . '</li>
                    </ul>'
                )
            );
        } else {
            $this->outputService->output(
                $this->doc->startPage($this->translate('title')) .
                $this->doc->header($this->translate('title')) .
                $this->translate('admin_rights_needed')
            );
        }

        $this->outputService->output($this->doc->endPage());
    }
public function main ( ) { LibraryLoader :: includeAll ( ) ; $ this -> doc = GeneralUtility :: makeInstance ( DocumentTemplate :: class ) ; $ this -> doc -> backPath = $ GLOBALS [ 'BACK_PATH' ] ; if ( $ GLOBALS [ 'BE_USER' ] -> user [ 'admin' ] ) { $ this -> doc -> bodyTagAdditions = 'id="doc3"' ; $ this -> addAdditionalHeaderData ( ) ; $ this -> cleanOutputBuffers ( ) ; $ this -> outputService -> output ( $ this -> doc -> startPage ( $ this -> translate ( 'title' ) ) . $ this -> doc -> header ( \ PHPUnit_Runner_Version :: getVersionString ( ) ) ) ; $ this -> renderRunTests ( ) ; $ this -> outputService -> output ( $ this -> doc -> section ( $ this -> translate ( 'shortcuts.title' ) , '<p>' . $ this -> translate ( 'shortcuts.text' ) . '</p>
                    <p>' . $ this -> translate ( 'shortcuts.browser_dependency' ) . '</p>
                    <ul>
                    <li>' . $ this -> translate ( 'shortcuts.browser_safari_ie' ) . '</li>
                    <li>' . $ this -> translate ( 'shortcuts.browser_firefox' ) . '</li>
                    </ul>' ) ) ; } else { $ this -> outputService -> output ( $ this -> doc -> startPage ( $ this -> translate ( 'title' ) ) . $ this -> doc -> header ( $ this -> translate ( 'title' ) ) . $ this -> translate ( 'admin_rights_needed' ) ) ; } $ this -> outputService -> output ( $ this -> doc -> endPage ( ) ) ; }
Main function of the module. Outputs all content directly instead of collecting it and doing the output later.

@return void
Main function of the module . Outputs all content directly instead of collecting it and doing the output later .