StubsTypeHintsTest
class StubsTypeHintsTest extends AbstractBaseStubsTestCase (View source)
Properties
protected string | $emptyDataSetMessage | from AbstractBaseStubsTestCase |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
static float|bool|int|string|null
getStringRepresentationOfDefaultParameterValue(mixed $defaultValue, PHPInterface|null $contextClass = null)
No description
static string
getParameterRepresentation(PHPFunction $function)
No description
static protected array
getDuplicatedFunctions(array $filtered)
No description
static protected 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