function PhpDeprecationTriggered::asString
Overrides Event::asString
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Events/ Test/ Issue/ PhpDeprecationTriggered.php, line 112
Class
- PhpDeprecationTriggered
- @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 %sPHP Deprecation (%s)%s', $status, $this->test
->id(), $message);
}