ArgumentResolverTest
extends TestCase
in package
Table of Contents
- $resolver : ArgumentResolver
- __invoke() : mixed
- controllerWithFoo() : mixed
- controllerWithoutArguments() : mixed
- setUpBeforeClass() : mixed
- testDefaultState() : mixed
- testGetArguments() : mixed
- testGetArgumentsFailsOnUnresolvedValue() : mixed
- testGetArgumentsFromClosure() : mixed
- testGetArgumentsFromFunctionName() : mixed
- testGetArgumentsFromInvokableObject() : mixed
- testGetArgumentsInjectsExtendingRequest() : mixed
- testGetArgumentsInjectsRequest() : mixed
- testGetArgumentsOverrideDefaultValueByRequestAttribute() : mixed
- testGetArgumentsReturnsEmptyArrayWhenNoArguments() : mixed
- testGetArgumentsUsesDefaultValue() : mixed
- testGetArgumentsUsesDefaultValueFromClosure() : mixed
- testGetArgumentWithoutArray() : mixed
- testGetNullableArguments() : mixed
- testGetNullableArgumentsWithDefaults() : mixed
- testGetSessionArguments() : mixed
- testGetSessionArgumentsWithExtendedSession() : mixed
- testGetSessionArgumentsWithInterface() : mixed
- testGetSessionMissMatchOnNull() : mixed
- testGetSessionMissMatchWithImplementation() : mixed
- testGetSessionMissMatchWithInterface() : mixed
- testGetVariadicArguments() : mixed
- testGetVariadicArgumentsWithoutArrayInRequest() : mixed
- testIfExceptionIsThrownWhenMissingAnArgument() : mixed
- controllerWithExtendingRequest() : mixed
- controllerWithExtendingSession() : mixed
- controllerWithFooAndDefaultBar() : mixed
- controllerWithFooBarFoobar() : mixed
- controllerWithRequest() : mixed
- controllerWithSession() : mixed
- controllerWithSessionInterface() : mixed
Properties
$resolver
private
static ArgumentResolver
$resolver
Methods
__invoke()
public
__invoke(mixed $foo[, mixed $bar = null ]) : mixed
Parameters
- $foo : mixed
- $bar : mixed = null
Return values
mixed —controllerWithFoo()
public
controllerWithFoo(mixed $foo) : mixed
Parameters
- $foo : mixed
Return values
mixed —controllerWithoutArguments()
public
controllerWithoutArguments() : mixed
Return values
mixed —setUpBeforeClass()
public
static setUpBeforeClass() : mixed
Return values
mixed —testDefaultState()
public
testDefaultState() : mixed
Return values
mixed —testGetArguments()
public
testGetArguments() : mixed
Return values
mixed —testGetArgumentsFailsOnUnresolvedValue()
public
testGetArgumentsFailsOnUnresolvedValue() : mixed
Return values
mixed —testGetArgumentsFromClosure()
public
testGetArgumentsFromClosure() : mixed
Return values
mixed —testGetArgumentsFromFunctionName()
public
testGetArgumentsFromFunctionName() : mixed
Return values
mixed —testGetArgumentsFromInvokableObject()
public
testGetArgumentsFromInvokableObject() : mixed
Return values
mixed —testGetArgumentsInjectsExtendingRequest()
public
testGetArgumentsInjectsExtendingRequest() : mixed
Return values
mixed —testGetArgumentsInjectsRequest()
public
testGetArgumentsInjectsRequest() : mixed
Return values
mixed —testGetArgumentsOverrideDefaultValueByRequestAttribute()
public
testGetArgumentsOverrideDefaultValueByRequestAttribute() : mixed
Return values
mixed —testGetArgumentsReturnsEmptyArrayWhenNoArguments()
public
testGetArgumentsReturnsEmptyArrayWhenNoArguments() : mixed
Return values
mixed —testGetArgumentsUsesDefaultValue()
public
testGetArgumentsUsesDefaultValue() : mixed
Return values
mixed —testGetArgumentsUsesDefaultValueFromClosure()
public
testGetArgumentsUsesDefaultValueFromClosure() : mixed
Return values
mixed —testGetArgumentWithoutArray()
public
testGetArgumentWithoutArray() : mixed
Tags
Return values
mixed —testGetNullableArguments()
public
testGetNullableArguments() : mixed
Tags
Return values
mixed —testGetNullableArgumentsWithDefaults()
public
testGetNullableArgumentsWithDefaults() : mixed
Tags
Return values
mixed —testGetSessionArguments()
public
testGetSessionArguments() : mixed
Return values
mixed —testGetSessionArgumentsWithExtendedSession()
public
testGetSessionArgumentsWithExtendedSession() : mixed
Return values
mixed —testGetSessionArgumentsWithInterface()
public
testGetSessionArgumentsWithInterface() : mixed
Return values
mixed —testGetSessionMissMatchOnNull()
public
testGetSessionMissMatchOnNull() : mixed
Return values
mixed —testGetSessionMissMatchWithImplementation()
public
testGetSessionMissMatchWithImplementation() : mixed
Return values
mixed —testGetSessionMissMatchWithInterface()
public
testGetSessionMissMatchWithInterface() : mixed
Return values
mixed —testGetVariadicArguments()
public
testGetVariadicArguments() : mixed
Tags
Return values
mixed —testGetVariadicArgumentsWithoutArrayInRequest()
public
testGetVariadicArgumentsWithoutArrayInRequest() : mixed
Tags
Return values
mixed —testIfExceptionIsThrownWhenMissingAnArgument()
public
testIfExceptionIsThrownWhenMissingAnArgument() : mixed
Return values
mixed —controllerWithExtendingRequest()
protected
controllerWithExtendingRequest(ExtendingRequest $request) : mixed
Parameters
- $request : ExtendingRequest
Return values
mixed —controllerWithExtendingSession()
protected
controllerWithExtendingSession(ExtendingSession $session) : mixed
Parameters
- $session : ExtendingSession
Return values
mixed —controllerWithFooAndDefaultBar()
protected
controllerWithFooAndDefaultBar(mixed $foo[, mixed $bar = null ]) : mixed
Parameters
- $foo : mixed
- $bar : mixed = null
Return values
mixed —controllerWithFooBarFoobar()
protected
controllerWithFooBarFoobar(mixed $foo, mixed $bar, mixed $foobar) : mixed
Parameters
- $foo : mixed
- $bar : mixed
- $foobar : mixed
Return values
mixed —controllerWithRequest()
protected
controllerWithRequest(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —controllerWithSession()
protected
controllerWithSession(Session $session) : mixed
Parameters
- $session : Session
Return values
mixed —controllerWithSessionInterface()
protected
controllerWithSessionInterface(SessionInterface $session) : mixed
Parameters
- $session : SessionInterface