StubsReflectionClassesTest
class StubsReflectionClassesTest extends AbstractBaseStubsTestCase (View source)
Class to test typehints of some Reflection* classes as reflection for these classes returns null.
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
testReflectionFunctionAbstractGetReturnTypeMethod()
No description
testReflectionPropertyGetTypeMethod()
No description
testReflectionParameterGetTypeMethod()
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
testReflectionFunctionAbstractGetReturnTypeMethod()
No description
testReflectionPropertyGetTypeMethod()
No description
testReflectionParameterGetTypeMethod()
No description