function DeprecationTriggered::asString
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Event/Events/TestRunner/DeprecationTriggered.php \PHPUnit\Event\TestRunner\DeprecationTriggered::asString()
Overrides Event::asString
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Events/ Test/ Issue/ DeprecationTriggered.php, line 112
Class
- DeprecationTriggered
- @psalm-immutable
Namespace
PHPUnit\Event\TestCode
public function asString() : string {
$message = $this->message;
if (!empty($message)) {
$message = PHP_EOL . $message;
}
$status = '';
if ($this->ignoredByTest) {
$status = 'Test-Ignored ';
}
elseif ($this->ignoredByBaseline) {
$status = 'Baseline-Ignored ';
}
elseif ($this->suppressed) {
$status = 'Suppressed ';
}
return sprintf('Test Triggered %sDeprecation (%s)%s', $status, $this->test
->id(), $message);
}