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

Breadcrumb

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

class PreserveGlobalState

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

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Framework\Attributes\PreserveGlobalState

Expanded class hierarchy of PreserveGlobalState

1 file declares its use of PreserveGlobalState
AttributeParser.php in vendor/phpunit/phpunit/src/Metadata/Parser/AttributeParser.php
2 string references to 'PreserveGlobalState'
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

File

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

Namespace

PHPUnit\Framework\Attributes
View source
final class PreserveGlobalState {
    private readonly bool $enabled;
    public function __construct(bool $enabled) {
        $this->enabled = $enabled;
    }
    public function enabled() : bool {
        return $this->enabled;
    }

}

Members

Title Sort descending Modifiers Object type Summary
PreserveGlobalState::$enabled private property
PreserveGlobalState::enabled public function
PreserveGlobalState::__construct public function
RSS feed
Powered by Drupal