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

Breadcrumb

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

class TestDox

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Metadata/TestDox.php \PHPUnit\Metadata\TestDox
  2. 11.1.x vendor/phpunit/phpunit/src/Event/Value/Test/TestDox.php \PHPUnit\Event\Code\TestDox

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Framework\Attributes\TestDox

Expanded class hierarchy of TestDox

1 file declares its use of TestDox
AttributeParser.php in vendor/phpunit/phpunit/src/Metadata/Parser/AttributeParser.php
3 string references to 'TestDox'
AnnotationParser::forClass in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className
AnnotationParser::forMethod in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className @psalm-param non-empty-string $methodName
Loader::phpunit in vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Loader.php

File

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

Namespace

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

}

Members

Title Sort descending Modifiers Object type Summary
TestDox::$text private property @psalm-var non-empty-string
TestDox::text public function @psalm-return non-empty-string
TestDox::__construct public function @psalm-param non-empty-string $text
RSS feed
Powered by Drupal