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\TestDoxCode
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()));
}