PHP Class Symfony\Component\HttpKernel\Tests\Controller\ControllerResolverTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: symfony/symfony Class Usage Examples

Public Methods

Method Description
__invoke ( $foo, $bar = null )
controllerMethod1 ( $foo )
getUndefinedControllers ( )
testCreateControllerCanReturnAnyCallable ( )
testGetArguments ( )
testGetControllerOnNonUndefinedFunction ( $controller, $exceptionName = null, $exceptionMessage = null )
testGetControllerOnObjectWithoutInvokeMethod ( )
testGetControllerWithClassAndInvokeMethod ( )
testGetControllerWithClassAndMethod ( )
testGetControllerWithFunction ( )
testGetControllerWithLambda ( )
testGetControllerWithObjectAndInvokeMethod ( )
testGetControllerWithObjectAndMethod ( )
testGetControllerWithObjectAndMethodAsString ( )
testGetControllerWithoutControllerParameter ( )
testGetNullableArguments ( )
testGetNullableArgumentsWithDefaults ( )
testGetVariadicArguments ( )
testIfExceptionIsThrownWhenMissingAnArgument ( )

Protected Methods

Method Description
controllerMethod2 ( $foo, $bar = null )
controllerMethod3 ( $foo, $bar, $foobar )
controllerMethod4 ( )
controllerMethod5 ( Request $request )
createControllerResolver ( Psr\Log\LoggerInterface $logger = null )

Method Details

__invoke() public method

public __invoke ( $foo, $bar = null )

controllerMethod1() public method

public controllerMethod1 ( $foo )

controllerMethod2() protected method

protected controllerMethod2 ( $foo, $bar = null )

controllerMethod3() protected method

protected controllerMethod3 ( $foo, $bar, $foobar )

controllerMethod4() protected static method

protected static controllerMethod4 ( )

controllerMethod5() protected method

protected controllerMethod5 ( Request $request )
$request Symfony\Component\HttpFoundation\Request

createControllerResolver() protected method

protected createControllerResolver ( Psr\Log\LoggerInterface $logger = null )
$logger Psr\Log\LoggerInterface

getUndefinedControllers() public method

testCreateControllerCanReturnAnyCallable() public method

testGetArguments() public method

public testGetArguments ( )

testGetControllerOnNonUndefinedFunction() public method

public testGetControllerOnNonUndefinedFunction ( $controller, $exceptionName = null, $exceptionMessage = null )

testGetControllerOnObjectWithoutInvokeMethod() public method

testGetControllerWithClassAndInvokeMethod() public method

testGetControllerWithClassAndMethod() public method

testGetControllerWithFunction() public method

testGetControllerWithLambda() public method

testGetControllerWithObjectAndInvokeMethod() public method

testGetControllerWithObjectAndMethod() public method

testGetControllerWithObjectAndMethodAsString() public method

testGetControllerWithoutControllerParameter() public method

testGetNullableArguments() public method

testGetNullableArgumentsWithDefaults() public method

testGetVariadicArguments() public method

testIfExceptionIsThrownWhenMissingAnArgument() public method