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

Breadcrumb

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

class DataProviderMethodCalled

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Test\DataProviderMethodCalled implements \PHPUnit\Event\Event

Expanded class hierarchy of DataProviderMethodCalled

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

File

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

Namespace

PHPUnit\Event\Test
View source
final class DataProviderMethodCalled implements Event {
    private readonly Info $telemetryInfo;
    private readonly ClassMethod $testMethod;
    private readonly ClassMethod $dataProviderMethod;
    public function __construct(Info $telemetryInfo, ClassMethod $testMethod, ClassMethod $dataProviderMethod) {
        $this->telemetryInfo = $telemetryInfo;
        $this->testMethod = $testMethod;
        $this->dataProviderMethod = $dataProviderMethod;
    }
    public function telemetryInfo() : Info {
        return $this->telemetryInfo;
    }
    public function testMethod() : ClassMethod {
        return $this->testMethod;
    }
    public function dataProviderMethod() : ClassMethod {
        return $this->dataProviderMethod;
    }
    public function asString() : string {
        return sprintf('Data Provider Method Called (%s::%s for test method %s::%s)', $this->dataProviderMethod
            ->className(), $this->dataProviderMethod
            ->methodName(), $this->testMethod
            ->className(), $this->testMethod
            ->methodName());
    }

}

Members

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