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

Breadcrumb

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

function NamePrettifier::prettifyDataSet

1 call to NamePrettifier::prettifyDataSet()
NamePrettifier::prettifyTestCase in vendor/phpunit/phpunit/src/Logging/TestDox/NamePrettifier.php

File

vendor/phpunit/phpunit/src/Logging/TestDox/NamePrettifier.php, line 212

Class

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

Namespace

PHPUnit\Logging\TestDox

Code

public function prettifyDataSet(TestCase $test, bool $colorize) : string {
    if (!$colorize) {
        return $test->dataSetAsString();
    }
    if (is_int($test->dataName())) {
        return Color::dim(' with data set ') . Color::colorize('fg-cyan', (string) $test->dataName());
    }
    return Color::dim(' with ') . Color::colorize('fg-cyan', Color::visualizeWhitespace($test->dataName()));
}

API Navigation

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