class StubsTypeHintsTest extends AbstractBaseStubsTestCase (View source)

Properties

protected string $emptyDataSetMessage from  AbstractBaseStubsTestCase

Methods

static float|bool|int|string|null
getStringRepresentationOfDefaultParameterValue(mixed $defaultValue, PHPInterface|null $contextClass = null)

No description

static string
getParameterRepresentation(PHPFunction $function)

No description

static array
getDuplicatedFunctions(array $filtered)

No description

static array
getAllDuplicatesOfFunction(string|null $name)

No description

static bool
isReflectionTypesMatchSignature(array $reflectionTypes, array $typesFromSignature)

No description

static bool
isReflectionTypesExistInAttributes(array $reflectionTypes, array $typesFromAttribute)

No description

static string
getStringRepresentationOfTypeHintsFromAttributes(array $typesFromAttribute)

No description

static 
convertNullableTypesToUnion(array $typesToProcess, array $resultArray)

No description

PHPClass|null
getClassLikeFromStubs(string $classId, bool $shouldSuiteCurrentPHPVersion = true)

No description

static void
setUpBeforeClass()

No description

testFunctionsReturnTypeHints(string|null $functionId)

No description

testFunctionsParametersTypeHints(string|null $functionId, string|null $parameterName)

No description

testClassMethodsReturnTypeHints(string|null $classId, string|null $methodName)

No description

testInterfaceMethodsReturnTypeHints(string|null $classId, string|null $methodName)

No description

testEnumMethodsReturnTypeHints(string|null $classId, string|null $methodName)

No description

testClassMethodsParametersTypeHints(string|null $classId, string|null $methodName, string|null $parameterName)

No description

testInterfaceMethodsParametersTypeHints(string|null $classId, string|null $methodName, string|null $parameterName)

No description

testEnumMethodsParametersTypeHints(string|null $classId, string|null $methodName, string|null $parameterName)

No description

testClassMethodScalarTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testInterfaceMethodScalarTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testEnumMethodScalarTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testClassMethodNullableTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testInterfaceMethodNullableTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testEnumMethodNullableTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testClassMethodUnionTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testInterfaceMethodUnionTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testEnumMethodUnionTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

static 
testSignatureTypeHintsConformPhpDocInFunctions(string $functionId)

No description

static 
testClassesMethodsSignatureTypeHintsConformPhpDocInMethods(string $classId, string $functionId)

No description

static 
testInterfacesMethodsSignatureTypeHintsConformPhpDocInMethods(string $classId, string $functionId)

No description

testEnumsMethodsSignatureTypeHintsConformPhpDocInMethods(string|null $classId, string|null $functionId)

No description

Details

static float|bool|int|string|null getStringRepresentationOfDefaultParameterValue(mixed $defaultValue, PHPInterface|null $contextClass = null)

No description

Parameters

mixed $defaultValue
PHPInterface|null $contextClass

Return Value

float|bool|int|string|null

static string getParameterRepresentation(PHPFunction $function)

No description

Parameters

PHPFunction $function

Return Value

string

static protected array getDuplicatedFunctions(array $filtered)

No description

Parameters

array $filtered

Return Value

array

static protected array getAllDuplicatesOfFunction(string|null $name)

No description

Parameters

string|null $name

Return Value

array

static bool isReflectionTypesMatchSignature(array $reflectionTypes, array $typesFromSignature)

No description

Parameters

array $reflectionTypes
array $typesFromSignature

Return Value

bool

static bool isReflectionTypesExistInAttributes(array $reflectionTypes, array $typesFromAttribute)

No description

Parameters

array $reflectionTypes
array $typesFromAttribute

Return Value

bool

static string getStringRepresentationOfTypeHintsFromAttributes(array $typesFromAttribute)

No description

Parameters

array $typesFromAttribute

Return Value

string

static convertNullableTypesToUnion(array $typesToProcess, array $resultArray)

No description

Parameters

array $typesToProcess
array $resultArray

PHPClass|null getClassLikeFromStubs(string $classId, bool $shouldSuiteCurrentPHPVersion = true)

No description

Parameters

string $classId
bool $shouldSuiteCurrentPHPVersion

Return Value

PHPClass|null

static void setUpBeforeClass()

No description

Return Value

void

testFunctionsReturnTypeHints(string|null $functionId)

No description

Parameters

string|null $functionId

testFunctionsParametersTypeHints(string|null $functionId, string|null $parameterName)

No description

Parameters

string|null $functionId
string|null $parameterName

testClassMethodsReturnTypeHints(string|null $classId, string|null $methodName)

No description

Parameters

string|null $classId
string|null $methodName

testInterfaceMethodsReturnTypeHints(string|null $classId, string|null $methodName)

No description

Parameters

string|null $classId
string|null $methodName

testEnumMethodsReturnTypeHints(string|null $classId, string|null $methodName)

No description

Parameters

string|null $classId
string|null $methodName

testClassMethodsParametersTypeHints(string|null $classId, string|null $methodName, string|null $parameterName)

No description

Parameters

string|null $classId
string|null $methodName
string|null $parameterName

testInterfaceMethodsParametersTypeHints(string|null $classId, string|null $methodName, string|null $parameterName)

No description

Parameters

string|null $classId
string|null $methodName
string|null $parameterName

testEnumMethodsParametersTypeHints(string|null $classId, string|null $methodName, string|null $parameterName)

No description

Parameters

string|null $classId
string|null $methodName
string|null $parameterName

testClassMethodScalarTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testInterfaceMethodScalarTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testEnumMethodScalarTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testClassMethodNullableTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testInterfaceMethodNullableTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testEnumMethodNullableTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testClassMethodUnionTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testInterfaceMethodUnionTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testEnumMethodUnionTypeHintsInParametersMatchReflection(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

static testSignatureTypeHintsConformPhpDocInFunctions(string $functionId)

No description

Parameters

string $functionId

static testClassesMethodsSignatureTypeHintsConformPhpDocInMethods(string $classId, string $functionId)

No description

Parameters

string $classId
string $functionId

static testInterfacesMethodsSignatureTypeHintsConformPhpDocInMethods(string $classId, string $functionId)

No description

Parameters

string $classId
string $functionId

testEnumsMethodsSignatureTypeHintsConformPhpDocInMethods(string|null $classId, string|null $functionId)

No description

Parameters

string|null $classId
string|null $functionId