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

Breadcrumb

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

class Passed

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Test\Passed implements \PHPUnit\Event\Event

Expanded class hierarchy of Passed

2 files declare their use of Passed
TestPassedSubscriber.php in vendor/phpunit/phpunit/src/Logging/TestDox/TestResult/Subscriber/TestPassedSubscriber.php
TestResultCollector.php in vendor/phpunit/phpunit/src/Logging/TestDox/TestResult/TestResultCollector.php

File

vendor/phpunit/phpunit/src/Event/Events/Test/Outcome/Passed.php, line 22

Namespace

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

}

Members

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

API Navigation

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