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

Breadcrumb

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

function ErrorTriggered::asString

Overrides Event::asString

File

vendor/phpunit/phpunit/src/Event/Events/Test/Issue/ErrorTriggered.php, line 98

Class

ErrorTriggered
@psalm-immutable

Namespace

PHPUnit\Event\Test

Code

public function asString() : string {
    $message = $this->message;
    if (!empty($message)) {
        $message = PHP_EOL . $message;
    }
    return sprintf('Test Triggered %sError (%s)%s', $this->wasSuppressed() ? 'Suppressed ' : '', $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