PHP Class ZendTest\Stratigility\DispatchTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: zendframework/zend-stratigility

Public Methods

Method Description
nonStandardMiddlewareProvider ( )
setUp ( )
testCallingProcessWithCallableMiddlewareDispatchesIt ( )
testCallingProcessWithInteropMiddlewareDispatchesIt ( )
testCanInjectAResponsePrototype ( )
testHasErrorAndHandleArityIsFourTriggersHandler ( )
testHasErrorAndHandleArityLessThanFourTriggersNextWithError ( )
testIfErrorHandlerReturnsResponseDispatchReturnsTheResponse ( )
testInvokingMemoizesResponseIfNonePreviouslyPresent ( )
testInvokingWithInteropMiddlewareDispatchesIt ( )
testNoErrorAndHandleArityGreaterThanThreeTriggersNext ( )
testNoErrorAndHandleArityLessThanFourTriggersHandler ( )
testProcessRaisesExceptionForNonInteropHandlersWhenNoResponsePrototypeIsPresent ( )
testProcessRaisesExceptionForNonInteropHandlersWhenNotProvidedAServerRequest ( )
testProcessRaisesExceptionWhenCatchingAnExceptionAndNoResponsePrototypePresent ( )
testProcessUsesResponsePrototypeForNonInteropHandlerWhenPresent ( )
testProcessWillInjectMiddlewarePipeWithResponsePrototypeIfPipelineDoesNotHaveOne ( )
testProcessWillNotInjectMiddlewarePipeWithResponsePrototypeIfPipelineAlreadyHasOne ( )
testResponsePrototypeIsAbsentByDefault ( )
testReturnsValueFromNonErrorHandler ( )
testShouldAllowDispatchingPsr7Instances ( )
testThrowingExceptionInErrorHandlerTriggersNextWithException ( )
testThrowingExceptionInNonErrorHandlerTriggersNextWithException ( )
testThrowsThrowablesRaisedByCallableMiddlewareWhenRaiseThrowablesFlagIsEnabled ( $throwable )
testThrowsThrowablesRaisedByErrorMiddlewareWhenRaiseThrowablesFlagIsEnabled ( $throwable )
testThrowsThrowablesRaisedByInteropMiddlewareWhenRaiseThrowablesFlagIsEnabled ( $throwable )
testThrowsThrowablesRaisedByNextMiddlewareWhenRaiseThrowablesFlagIsEnabled ( $middleware, $throwable )
testWillCatchPhp7Throwable ( )
throwablesProvider ( )

Method Details

nonStandardMiddlewareProvider() public method

setUp() public method

public setUp ( )

testCallingProcessWithCallableMiddlewareDispatchesIt() public method

testCallingProcessWithInteropMiddlewareDispatchesIt() public method

testCanInjectAResponsePrototype() public method

testHasErrorAndHandleArityIsFourTriggersHandler() public method

testHasErrorAndHandleArityLessThanFourTriggersNextWithError() public method

testIfErrorHandlerReturnsResponseDispatchReturnsTheResponse() public method

testInvokingMemoizesResponseIfNonePreviouslyPresent() public method

testInvokingWithInteropMiddlewareDispatchesIt() public method

testNoErrorAndHandleArityGreaterThanThreeTriggersNext() public method

testNoErrorAndHandleArityLessThanFourTriggersHandler() public method

testProcessRaisesExceptionForNonInteropHandlersWhenNoResponsePrototypeIsPresent() public method

testProcessRaisesExceptionForNonInteropHandlersWhenNotProvidedAServerRequest() public method

testProcessRaisesExceptionWhenCatchingAnExceptionAndNoResponsePrototypePresent() public method

testProcessUsesResponsePrototypeForNonInteropHandlerWhenPresent() public method

testProcessWillInjectMiddlewarePipeWithResponsePrototypeIfPipelineDoesNotHaveOne() public method

testProcessWillNotInjectMiddlewarePipeWithResponsePrototypeIfPipelineAlreadyHasOne() public method

testResponsePrototypeIsAbsentByDefault() public method

testReturnsValueFromNonErrorHandler() public method

testShouldAllowDispatchingPsr7Instances() public method

testThrowingExceptionInErrorHandlerTriggersNextWithException() public method

testThrowingExceptionInNonErrorHandlerTriggersNextWithException() public method

testThrowsThrowablesRaisedByCallableMiddlewareWhenRaiseThrowablesFlagIsEnabled() public method

testThrowsThrowablesRaisedByErrorMiddlewareWhenRaiseThrowablesFlagIsEnabled() public method

testThrowsThrowablesRaisedByInteropMiddlewareWhenRaiseThrowablesFlagIsEnabled() public method

testThrowsThrowablesRaisedByNextMiddlewareWhenRaiseThrowablesFlagIsEnabled() public method

testWillCatchPhp7Throwable() public method

throwablesProvider() public method

public throwablesProvider ( )