function ResultPrinter::symbolFor
1 call to ResultPrinter::symbolFor()
- ResultPrinter::printTestResultHeader in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ TestDox/ ResultPrinter.php
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ TestDox/ ResultPrinter.php, line 342
Class
- ResultPrinter
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUI\Output\TestDoxCode
private function symbolFor(TestStatus $status) : string {
if ($status->isSuccess()) {
return '✔';
}
if ($status->isError() || $status->isFailure()) {
return '✘';
}
if ($status->isSkipped()) {
return '↩';
}
if ($status->isDeprecation() || $status->isNotice() || $status->isRisky() || $status->isWarning()) {
return '⚠';
}
if ($status->isIncomplete()) {
return '∅';
}
return '?';
}