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

Breadcrumb

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

class Loaded

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\TestSuite\Loaded implements \PHPUnit\Event\Event

Expanded class hierarchy of Loaded

1 file declares its use of Loaded
DispatchingEmitter.php in vendor/phpunit/phpunit/src/Event/Emitter/DispatchingEmitter.php

File

vendor/phpunit/phpunit/src/Event/Events/TestSuite/Loaded.php, line 21

Namespace

PHPUnit\Event\TestSuite
View source
final class Loaded implements Event {
    private readonly Telemetry\Info $telemetryInfo;
    private readonly TestSuite $testSuite;
    public function __construct(Telemetry\Info $telemetryInfo, TestSuite $testSuite) {
        $this->telemetryInfo = $telemetryInfo;
        $this->testSuite = $testSuite;
    }
    public function telemetryInfo() : Telemetry\Info {
        return $this->telemetryInfo;
    }
    public function testSuite() : TestSuite {
        return $this->testSuite;
    }
    public function asString() : string {
        return sprintf('Test Suite Loaded (%d test%s)', $this->testSuite
            ->count(), $this->testSuite
            ->count() !== 1 ? 's' : '');
    }

}

Members

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