PHP Class ZendTest\Stratigility\NextTest

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

Protected Properties

Property Type Description
$errorHandler

Public Methods

Method Description
nonNullNonThrowableNonStringErrors ( )
restoreErrorHandler ( )
setUp ( )
tearDown ( )
testDoneHandlerIsInvokedWhenQueueIsExhausted ( )
testDoneHandlerIsInvokedWhenQueueIsExhaustedByProcessAndResponsePrototypeIsPresent ( )
testDoneHandlerReceivesRequestAndResponse ( )
testEnablingRaiseThrowablesFlagWillCauseInvocationToRaiseMiddlewareExceptionForNonNullArguments ( $error )
testEnablingRaiseThrowablesFlagWillCauseInvocationToRaiseMiddlewareExceptionForStringArgument ( )
testEnablingRaiseThrowablesFlagWillCauseInvocationToRaiseThrowableForThrowableErrorArguments ( $throwable )
testInvocationWillSetResponsePrototypeIfNotAlreadySet ( )
testInvokesHandlerWhenMatched ( )
testInvokesItselfIfRouteDoesNotMatchAtABoundary ( )
testInvokesItselfWhenRouteDoesNotMatchCurrentUrl ( )
testMiddlewareCallingNextWithRequestPassesRequestToNextMiddleware ( )
testMiddlewareCallingNextWithResponseAsFirstArgumentResetsResponse ( )
testMiddlewareCallingNextWithResponseResetsResponse ( )
testMiddlewareReturningResponseShortCircuitsProcess ( )
testMiddlewareReturningResponseShortcircuits ( )
testNestedNextInvocationWithAnErrorShouldDispatchErrorMiddleware ( )
testNextCanComposeAResponsePrototype ( )
testNextCanUseADelegateForTheDoneHandler ( )
testNextDoesNotComposeResponsePrototypeByDefault ( )
testNextImplementsDelegateInterface ( )
testNextShouldCloneQueueOnInstantiation ( )
testNextShouldRaiseDeprecationNoticeWhenInvokedWithErrorArgument ( )
testNextShouldReturnPassedResponseWhenNoReturnValueProvided ( )
testProcessDispatchesHandlerWhenMatched ( )
testProcessRaisesExceptionIfNoResponseReturnedByMiddlewareAndNoResponsePrototypePresent ( )
testProcessRaisesExceptionPriorToCallingDoneHandlerIfNoResponsePrototypePresent ( )
testProcessRaisesExceptionPriorToCallingDoneHandlerIfNotAServerRequest ( )
testProcessReinvokesItselfIfRouteDoesNotMatchAtABoundary ( )
testProcessReinvokesItselfWhenRouteDoesNotMatchCurrentUrl ( )
testProcessReturnsResponsePrototypeIfNoResponseReturnedByMiddleware ( )
testRequestUriInHandlerInvokedByProcessDoesNotContainMatchedPortionOfRoute ( )
testRequestUriInInvokedHandlerDoesNotContainMatchedPortionOfRoute ( )
testSettingRaiseThrowablesFlagSetsCorrespondingFlagOnComposedDispatchInstance ( )
testSlashAndPathGetResetBeforeExecutingNextMiddleware ( )
testSlashAndPathGetResetByProcessBeforeExecutingNextMiddleware ( )
throwablesProvider ( )

Method Details

nonNullNonThrowableNonStringErrors() public method

restoreErrorHandler() public method

public restoreErrorHandler ( )

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testDoneHandlerIsInvokedWhenQueueIsExhausted() public method

testDoneHandlerIsInvokedWhenQueueIsExhaustedByProcessAndResponsePrototypeIsPresent() public method

testDoneHandlerReceivesRequestAndResponse() public method

testEnablingRaiseThrowablesFlagWillCauseInvocationToRaiseMiddlewareExceptionForNonNullArguments() public method

testEnablingRaiseThrowablesFlagWillCauseInvocationToRaiseMiddlewareExceptionForStringArgument() public method

testEnablingRaiseThrowablesFlagWillCauseInvocationToRaiseThrowableForThrowableErrorArguments() public method

testInvocationWillSetResponsePrototypeIfNotAlreadySet() public method

testInvokesHandlerWhenMatched() public method

testInvokesItselfIfRouteDoesNotMatchAtABoundary() public method

testInvokesItselfWhenRouteDoesNotMatchCurrentUrl() public method

testMiddlewareCallingNextWithRequestPassesRequestToNextMiddleware() public method

testMiddlewareCallingNextWithResponseAsFirstArgumentResetsResponse() public method

testMiddlewareCallingNextWithResponseResetsResponse() public method

testMiddlewareReturningResponseShortCircuitsProcess() public method

testMiddlewareReturningResponseShortcircuits() public method

testNestedNextInvocationWithAnErrorShouldDispatchErrorMiddleware() public method

testNextCanComposeAResponsePrototype() public method

testNextCanUseADelegateForTheDoneHandler() public method

testNextDoesNotComposeResponsePrototypeByDefault() public method

testNextImplementsDelegateInterface() public method

testNextShouldCloneQueueOnInstantiation() public method

testNextShouldRaiseDeprecationNoticeWhenInvokedWithErrorArgument() public method

testNextShouldReturnPassedResponseWhenNoReturnValueProvided() public method

testProcessDispatchesHandlerWhenMatched() public method

testProcessRaisesExceptionIfNoResponseReturnedByMiddlewareAndNoResponsePrototypePresent() public method

testProcessRaisesExceptionPriorToCallingDoneHandlerIfNoResponsePrototypePresent() public method

testProcessRaisesExceptionPriorToCallingDoneHandlerIfNotAServerRequest() public method

testProcessReinvokesItselfIfRouteDoesNotMatchAtABoundary() public method

testProcessReinvokesItselfWhenRouteDoesNotMatchCurrentUrl() public method

testProcessReturnsResponsePrototypeIfNoResponseReturnedByMiddleware() public method

testRequestUriInHandlerInvokedByProcessDoesNotContainMatchedPortionOfRoute() public method

testRequestUriInInvokedHandlerDoesNotContainMatchedPortionOfRoute() public method

testSettingRaiseThrowablesFlagSetsCorrespondingFlagOnComposedDispatchInstance() public method

testSlashAndPathGetResetBeforeExecutingNextMiddleware() public method

testSlashAndPathGetResetByProcessBeforeExecutingNextMiddleware() public method

throwablesProvider() public method

public throwablesProvider ( )

Property Details

$errorHandler protected property

protected $errorHandler