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

Breadcrumb

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

class DataProvider

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Metadata/Api/DataProvider.php \PHPUnit\Metadata\Api\DataProvider
  2. 11.1.x vendor/phpunit/phpunit/src/Metadata/DataProvider.php \PHPUnit\Metadata\DataProvider

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Framework\Attributes\DataProvider

Expanded class hierarchy of DataProvider

4 files declare their use of DataProvider
AbstractTransportFactoryTestCase.php in vendor/symfony/mailer/Test/AbstractTransportFactoryTestCase.php
AttributeParser.php in vendor/phpunit/phpunit/src/Metadata/Parser/AttributeParser.php
IncompleteDsnTestTrait.php in vendor/symfony/mailer/Test/IncompleteDsnTestTrait.php
NodeTestCase.php in vendor/twig/twig/src/Test/NodeTestCase.php
1 string reference to 'DataProvider'
AnnotationParser::forMethod in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className @psalm-param non-empty-string $methodName

File

vendor/phpunit/phpunit/src/Framework/Attributes/DataProvider.php, line 19

Namespace

PHPUnit\Framework\Attributes
View source
final class DataProvider {
    
    /**
     * @psalm-var non-empty-string
     */
    private readonly string $methodName;
    
    /**
     * @psalm-param non-empty-string $methodName
     */
    public function __construct(string $methodName) {
        $this->methodName = $methodName;
    }
    
    /**
     * @psalm-return non-empty-string
     */
    public function methodName() : string {
        return $this->methodName;
    }

}

Members

Title Sort descending Modifiers Object type Summary
DataProvider::$methodName private property @psalm-var non-empty-string
DataProvider::methodName public function @psalm-return non-empty-string
DataProvider::__construct public function @psalm-param non-empty-string $methodName

API Navigation

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