function ResultPrinter::prefixLines
3 calls to ResultPrinter::prefixLines()
- ResultPrinter::printTestResultBodyEnd in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ TestDox/ ResultPrinter.php - ResultPrinter::printTestResultBodyStart in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ TestDox/ ResultPrinter.php - ResultPrinter::printThrowable in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ TestDox/ ResultPrinter.php
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ TestDox/ ResultPrinter.php, line 259
Class
- ResultPrinter
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUI\Output\TestDoxCode
private function prefixLines(string $prefix, string $message) : string {
return implode(PHP_EOL, array_map(static fn(string $line) => ' ' . $prefix . ($line ? ' ' . $line : ''), preg_split('/\\r\\n|\\r|\\n/', $message)));
}