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

Breadcrumb

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

class Test

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Framework/Attributes/Test.php \PHPUnit\Framework\Attributes\Test
  2. 11.1.x vendor/phpunit/phpunit/src/Metadata/Test.php \PHPUnit\Metadata\Test
  3. 11.1.x vendor/phpunit/phpunit/src/Util/Test.php \PHPUnit\Util\Test

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Code\Test

Expanded class hierarchy of Test

14 files declare their use of Test
DeprecationTriggered.php in vendor/phpunit/phpunit/src/Event/Events/Test/Issue/DeprecationTriggered.php
ErrorTriggered.php in vendor/phpunit/phpunit/src/Event/Events/Test/Issue/ErrorTriggered.php
Issue.php in vendor/phpunit/phpunit/src/Runner/TestResult/Issue.php
JunitXmlLogger.php in vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php
NoticeTriggered.php in vendor/phpunit/phpunit/src/Event/Events/Test/Issue/NoticeTriggered.php

... See full list

14 string references to 'Test'
AddAnnotatedClassesToCachePass::matchAnyRegexps in vendor/symfony/http-kernel/DependencyInjection/AddAnnotatedClassesToCachePass.php
AnnotationParser::forMethod in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className @psalm-param non-empty-string $methodName
GuardTokenParser::parse in vendor/twig/twig/src/TokenParser/GuardTokenParser.php
Parses a token and returns a node.
NamePrettifier::prettifyTestClassName in vendor/phpunit/phpunit/src/Logging/TestDox/NamePrettifier.php
@psalm-param class-string $className
NamePrettifier::prettifyTestMethodName in vendor/phpunit/phpunit/src/Logging/TestDox/NamePrettifier.php

... See full list

File

vendor/phpunit/phpunit/src/Event/Value/Test/Test.php, line 17

Namespace

PHPUnit\Event\Code
View source
abstract class Test {
    
    /**
     * @psalm-var non-empty-string
     */
    private readonly string $file;
    
    /**
     * @psalm-param non-empty-string $file
     */
    public function __construct(string $file) {
        $this->file = $file;
    }
    
    /**
     * @psalm-return non-empty-string
     */
    public function file() : string {
        return $this->file;
    }
    
    /**
     * @psalm-assert-if-true TestMethod $this
     */
    public function isTestMethod() : bool {
        return false;
    }
    
    /**
     * @psalm-assert-if-true Phpt $this
     */
    public function isPhpt() : bool {
        return false;
    }
    
    /**
     * @psalm-return non-empty-string
     */
    public abstract function id() : string;
    
    /**
     * @psalm-return non-empty-string
     */
    public abstract function name() : string;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
Test::$file private property @psalm-var non-empty-string
Test::file public function @psalm-return non-empty-string
Test::id abstract public function @psalm-return non-empty-string 2
Test::isPhpt public function @psalm-assert-if-true Phpt $this 1
Test::isTestMethod public function @psalm-assert-if-true TestMethod $this 1
Test::name abstract public function @psalm-return non-empty-string 2
Test::__construct public function @psalm-param non-empty-string $file 1
RSS feed
Powered by Drupal