Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HtmlRenderer.php

function HtmlRenderer::render

@psalm-param array<string, TestResultCollection> $tests

File

vendor/phpunit/phpunit/src/Logging/TestDox/HtmlRenderer.php, line 109

Class

HtmlRenderer
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Logging\TestDox

Code

public function render(array $tests) : string {
    $buffer = self::PAGE_HEADER;
    foreach ($tests as $prettifiedClassName => $_tests) {
        $buffer .= sprintf(self::CLASS_HEADER, $prettifiedClassName);
        foreach ($this->reduce($_tests) as $prettifiedMethodName => $outcome) {
            $buffer .= sprintf("            <li class=\"%s\">%s</li>\n", $outcome, $prettifiedMethodName);
        }
        $buffer .= self::CLASS_FOOTER;
    }
    return $buffer . self::PAGE_FOOTER;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal