PHP Class BetterReflectionTest\Reflection\ReflectionParameterTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: roave/better-reflection

Méthodes publiques

Méthode Description
defaultParameterProvider ( ) : array
defaultValueStringProvider ( )
setUp ( )
testAllowsNull ( )
testCannotClone ( )
testCreateFromClassInstanceAndMethod ( )
testCreateFromClassNameAndMethod ( )
testCreateFromSpecWithArray ( )
testCreateFromSpecWithArrayWithInstance ( )
testCreateFromSpecWithClosure ( )
testCreateFromSpecWithFunctionName ( )
testCreateFromSpecWithInvalidArgumentThrowsException ( )
testDefaultParametersTypes ( string $defaultExpression, mixed $expectedValue )
testExportThrowsException ( )
testGetClassForTypeHintedMethodParameters ( )
testGetDeclaringClassForFunctionReturnsNull ( )
testGetDeclaringClassForMethod ( )
testGetDeclaringFunction ( )
testGetDefaultValueAndIsOptional ( )
testGetDefaultValueAsString ( string $defaultValue, $expectedValue )
testGetDefaultValueWhenDefaultValueNotAvailableThrowsException ( )
testGetDocBlockTypeStrings ( )
testGetDocBlockTypes ( )
testGetPosition ( )
testGetTypeHint ( string $parameterToTest, string $expectedType, string | null $expectedFqsen = null, string | null $expectedFqsenName = null )
testHasTypeReturnsFalseWithoutType ( )
testHasTypeReturnsTrueWithType ( )
testImplementsReflector ( )
testIsArray ( )
testIsCallable ( )
testIsDefaultValueConstantAndGetDefaultValueConstantName ( )
testIsPassedByReference ( )
testIsVariadic ( )
testPhp7TypeDeclarationWithClassTypeIsNotBuiltin ( )
testPhp7TypeDeclarationWithIntBuiltinType ( )
testPhp7TypeDeclarationWithStringTypeThatAllowsNull ( )
testPhp7TypeDeclarationWithoutType ( )
testRemoveType ( )
testSetType ( )
testStringCast ( )
testVariadicParametersAreAlsoImplicitlyOptional ( )
typeHintProvider ( ) : array

Method Details

defaultParameterProvider() public méthode

public defaultParameterProvider ( ) : array
Résultat array

defaultValueStringProvider() public méthode

setUp() public méthode

public setUp ( )

testAllowsNull() public méthode

public testAllowsNull ( )

testCannotClone() public méthode

public testCannotClone ( )

testCreateFromClassInstanceAndMethod() public méthode

testCreateFromClassNameAndMethod() public méthode

testCreateFromSpecWithArray() public méthode

testCreateFromSpecWithArrayWithInstance() public méthode

testCreateFromSpecWithClosure() public méthode

testCreateFromSpecWithFunctionName() public méthode

testCreateFromSpecWithInvalidArgumentThrowsException() public méthode

testDefaultParametersTypes() public méthode

public testDefaultParametersTypes ( string $defaultExpression, mixed $expectedValue )
$defaultExpression string
$expectedValue mixed

testExportThrowsException() public méthode

testGetClassForTypeHintedMethodParameters() public méthode

testGetDeclaringClassForFunctionReturnsNull() public méthode

testGetDeclaringClassForMethod() public méthode

testGetDeclaringFunction() public méthode

testGetDefaultValueAndIsOptional() public méthode

testGetDefaultValueAsString() public méthode

public testGetDefaultValueAsString ( string $defaultValue, $expectedValue )
$defaultValue string

testGetDefaultValueWhenDefaultValueNotAvailableThrowsException() public méthode

testGetDocBlockTypeStrings() public méthode

testGetDocBlockTypes() public méthode

testGetPosition() public méthode

public testGetPosition ( )

testGetTypeHint() public méthode

public testGetTypeHint ( string $parameterToTest, string $expectedType, string | null $expectedFqsen = null, string | null $expectedFqsenName = null )
$parameterToTest string
$expectedType string
$expectedFqsen string | null
$expectedFqsenName string | null

testHasTypeReturnsFalseWithoutType() public méthode

testHasTypeReturnsTrueWithType() public méthode

testImplementsReflector() public méthode

testIsArray() public méthode

public testIsArray ( )

testIsCallable() public méthode

public testIsCallable ( )

testIsDefaultValueConstantAndGetDefaultValueConstantName() public méthode

testIsPassedByReference() public méthode

testIsVariadic() public méthode

public testIsVariadic ( )

testPhp7TypeDeclarationWithClassTypeIsNotBuiltin() public méthode

testPhp7TypeDeclarationWithIntBuiltinType() public méthode

testPhp7TypeDeclarationWithStringTypeThatAllowsNull() public méthode

testPhp7TypeDeclarationWithoutType() public méthode

testRemoveType() public méthode

public testRemoveType ( )

testSetType() public méthode

public testSetType ( )

testStringCast() public méthode

public testStringCast ( )

testVariadicParametersAreAlsoImplicitlyOptional() public méthode

typeHintProvider() public méthode

public typeHintProvider ( ) : array
Résultat array