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

Breadcrumb

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

function File::createPopoverContentForTest

5 calls to File::createPopoverContentForTest()
File::renderBranchLines in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php
File::renderPathLines in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php
File::renderSourceWithBranchCoverage in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php
File::renderSourceWithLineCoverage in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php
File::renderSourceWithPathCoverage in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php

File

vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php, line 1088

Class

File
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Namespace

SebastianBergmann\CodeCoverage\Report\Html

Code

private function createPopoverContentForTest(string $test, array $testData) : string {
    $testCSS = '';
    switch ($testData['status']) {
        case 'success':
            $testCSS = match ($testData['size']) {    'small' => ' class="covered-by-small-tests"',
                'medium' => ' class="covered-by-medium-tests"',
                default => ' class="covered-by-large-tests"',
            
            };
            break;
        case 'failure':
            $testCSS = ' class="danger"';
            break;
    }
    return sprintf('<li%s>%s</li>', $testCSS, htmlspecialchars($test, $this->htmlSpecialCharsFlags));
}

API Navigation

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