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

Breadcrumb

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

class TestStubCreated

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Test\TestStubCreated implements \PHPUnit\Event\Event

Expanded class hierarchy of TestStubCreated

File

vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/TestStubCreated.php, line 21

Namespace

PHPUnit\Event\Test
View source
final class TestStubCreated implements Event {
    private readonly Telemetry\Info $telemetryInfo;
    
    /**
     * @var class-string
     */
    private readonly string $className;
    
    /**
     * @psalm-param class-string $className
     */
    public function __construct(Telemetry\Info $telemetryInfo, string $className) {
        $this->telemetryInfo = $telemetryInfo;
        $this->className = $className;
    }
    public function telemetryInfo() : Telemetry\Info {
        return $this->telemetryInfo;
    }
    
    /**
     * @return class-string
     */
    public function className() : string {
        return $this->className;
    }
    public function asString() : string {
        return sprintf('Test Stub Created (%s)', $this->className);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
TestStubCreated::$className private property
TestStubCreated::$telemetryInfo private property
TestStubCreated::asString public function Overrides Event::asString
TestStubCreated::className public function
TestStubCreated::telemetryInfo public function Overrides Event::telemetryInfo
TestStubCreated::__construct public function @psalm-param class-string $className

API Navigation

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