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

Breadcrumb

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

class PreparationStarted

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Test\PreparationStarted implements \PHPUnit\Event\Event

Expanded class hierarchy of PreparationStarted

2 files declare their use of PreparationStarted
JunitXmlLogger.php in vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php
TestPreparationStartedSubscriber.php in vendor/phpunit/phpunit/src/Logging/JUnit/Subscriber/TestPreparationStartedSubscriber.php

File

vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/PreparationStarted.php, line 22

Namespace

PHPUnit\Event\Test
View source
final class PreparationStarted implements Event {
    private readonly Telemetry\Info $telemetryInfo;
    private readonly Code\Test $test;
    public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test) {
        $this->telemetryInfo = $telemetryInfo;
        $this->test = $test;
    }
    public function telemetryInfo() : Telemetry\Info {
        return $this->telemetryInfo;
    }
    public function test() : Code\Test {
        return $this->test;
    }
    public function asString() : string {
        return sprintf('Test Preparation Started (%s)', $this->test
            ->id());
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
PreparationStarted::$telemetryInfo private property
PreparationStarted::$test private property
PreparationStarted::asString public function Overrides Event::asString
PreparationStarted::telemetryInfo public function Overrides Event::telemetryInfo
PreparationStarted::test public function
PreparationStarted::__construct public function
RSS feed
Powered by Drupal