| Methods |
protected
|
setUp(): void
Re-register this test class's container as the owner of the global static state
(the reflection provider, the PhpVersion, the bleeding edge toggle) before every
test, so a container another test class installed can't flake tests that build
Type objects directly. See https://github.com/phpstan/phpstan/issues/14860 This is the only hook that does it, on every PHPUnit version. Data providers
are covered separately - see PHPStanTestCaseTrait::restoreBaseContainer().
Re-register this test class's container as the owner of the global static state
(the reflection provider, the PhpVersion, the bleeding edge toggle) before every
test, so a container another test class installed can't flake tests that build
Type objects directly. See https://github.com/phpstan/phpstan/issues/14860 This is the only hook that does it, on every PHPUnit version. Data providers
are covered separately - see PHPStanTestCaseTrait::restoreBaseContainer().
|
#
|
public
static
|
tearDownAfterClass(): void
|
#
|
public
static
|
getParser(): Parser
|
#
|
public
static
|
createReflectionProvider(): ReflectionProvider
|
#
|
public
static
|
getReflector(): Reflector
|
#
|
public
static
|
getClassReflectionExtensionRegistryProvider(): ClassReflectionExtensionRegistryProvider
|
#
|
public
static
|
createScopeFactory(
ReflectionProvider $reflectionProvider,
TypeSpecifier $typeSpecifier,
string[] $dynamicConstantNames = [],
): ScopeFactory
|
#
|
public
static
|
createTypeAliasResolver(
array<string, string> $globalTypeAliases,
ReflectionProvider $reflectionProvider,
): TypeAliasResolver
|
#
|
protected
|
shouldTreatPhpDocTypesAsCertain(): bool
|
#
|
protected
|
assertSamePaths(string $expected, string $actual, string $message = ''): void
Provides a DIRECTORY_SEPARATOR agnostic assertion helper, to compare file paths.
Provides a DIRECTORY_SEPARATOR agnostic assertion helper, to compare file paths.
|
#
|
protected
|
assertNoErrors(Error[]|string[] $errors): void
|
#
|
protected
|
skipIfNotOnWindows(): void
|
#
|
protected
|
skipIfNotOnUnix(): void
|
#
|