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

Breadcrumb

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

function TestMethod::id

@psalm-return non-empty-string

Overrides Test::id

File

vendor/phpunit/phpunit/src/Event/Value/Test/TestMethod.php, line 111

Class

TestMethod
@psalm-immutable

Namespace

PHPUnit\Event\Code

Code

public function id() : string {
    $buffer = $this->className . '::' . $this->methodName;
    if ($this->testData()
        ->hasDataFromDataProvider()) {
        $buffer .= '#' . $this->testData
            ->dataFromDataProvider()
            ->dataSetName();
    }
    return $buffer;
}
RSS feed
Powered by Drupal