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

Breadcrumb

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

class DeprecationTriggered

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Event/Events/Test/Issue/DeprecationTriggered.php \PHPUnit\Event\Test\DeprecationTriggered

@psalm-immutable

@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Hierarchy

  • class \PHPUnit\Event\TestRunner\DeprecationTriggered implements \PHPUnit\Event\Event

Expanded class hierarchy of DeprecationTriggered

3 files declare their use of DeprecationTriggered
Collector.php in vendor/phpunit/phpunit/src/Runner/TestResult/Collector.php
TestResult.php in vendor/phpunit/phpunit/src/Runner/TestResult/TestResult.php
TestRunnerTriggeredDeprecationSubscriber.php in vendor/phpunit/phpunit/src/Runner/TestResult/Subscriber/TestRunnerTriggeredDeprecationSubscriber.php

File

vendor/phpunit/phpunit/src/Event/Events/TestRunner/DeprecationTriggered.php, line 21

Namespace

PHPUnit\Event\TestRunner
View source
final class DeprecationTriggered implements Event {
    private readonly Telemetry\Info $telemetryInfo;
    private readonly string $message;
    public function __construct(Telemetry\Info $telemetryInfo, string $message) {
        $this->telemetryInfo = $telemetryInfo;
        $this->message = $message;
    }
    public function telemetryInfo() : Telemetry\Info {
        return $this->telemetryInfo;
    }
    public function message() : string {
        return $this->message;
    }
    public function asString() : string {
        return sprintf('Test Runner Triggered Deprecation (%s)', $this->message);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
DeprecationTriggered::$message private property
DeprecationTriggered::$telemetryInfo private property
DeprecationTriggered::asString public function Overrides Event::asString
DeprecationTriggered::message public function
DeprecationTriggered::telemetryInfo public function Overrides Event::telemetryInfo
DeprecationTriggered::__construct public function

API Navigation

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