Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DeprecationTriggered.php

function DeprecationTriggered::asString

Same name in this branch
  1. 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\Test

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal