StubsPhp81Tests
class StubsPhp81Tests 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
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
testPropertyReadonly(string|null $classId, string|null $propertyName)
No description
testClassMethodTentativeReturnTypeHints(string|null $classId, string|null $methodName)
No description
testInterfaceMethodTentativeReturnTypeHints(string|null $classId, string|null $methodName)
No description
testEnumMethodTentativeReturnTypeHints(string|null $classId, string|null $methodName)
No description
void
testEnumConstants(string|null $classId, string|null $constantName)
No description
void
testEnumCases(string|null $classId, string|null $caseName)
No description
testEnumMethodsDefaultParametersValue(string|null $classId, string|null $methodName, string|null $parameterName)
No description
testEnumMethodsWithoutOptionalDefaultParametersValue(string|null $classId, string|null $methodName, string|null $parameterName)
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
testPropertyReadonly(string|null $classId, string|null $propertyName)
No description
testClassMethodTentativeReturnTypeHints(string|null $classId, string|null $methodName)
No description
testInterfaceMethodTentativeReturnTypeHints(string|null $classId, string|null $methodName)
No description
testEnumMethodTentativeReturnTypeHints(string|null $classId, string|null $methodName)
No description
void
testEnumConstants(string|null $classId, string|null $constantName)
No description
void
testEnumCases(string|null $classId, string|null $caseName)
No description
testEnumMethodsDefaultParametersValue(string|null $classId, string|null $methodName, string|null $parameterName)
No description
testEnumMethodsWithoutOptionalDefaultParametersValue(string|null $classId, string|null $methodName, string|null $parameterName)
No description