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

Breadcrumb

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

class Prepared

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Test\Prepared implements \PHPUnit\Event\Event

Expanded class hierarchy of Prepared

10 files declare their use of Prepared
JunitXmlLogger.php in vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php
ResultCacheHandler.php in vendor/phpunit/phpunit/src/Runner/ResultCache/ResultCacheHandler.php
TeamCityLogger.php in vendor/phpunit/phpunit/src/Logging/TeamCity/TeamCityLogger.php
TestPreparedSubscriber.php in vendor/phpunit/phpunit/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestPreparedSubscriber.php
TestPreparedSubscriber.php in vendor/phpunit/phpunit/src/Logging/JUnit/Subscriber/TestPreparedSubscriber.php

... See full list

File

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

Namespace

PHPUnit\Event\Test
View source
final class Prepared 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 Prepared (%s)', $this->test
            ->id());
    }

}

Members

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