PHP Класс ZendTest\Stratigility\DispatchTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )

Описание методов

nonStandardMiddlewareProvider() публичный Метод

setUp() публичный Метод

public setUp ( )

testCallingProcessWithCallableMiddlewareDispatchesIt() публичный Метод

testCallingProcessWithInteropMiddlewareDispatchesIt() публичный Метод

testCanInjectAResponsePrototype() публичный Метод

testHasErrorAndHandleArityIsFourTriggersHandler() публичный Метод

testHasErrorAndHandleArityLessThanFourTriggersNextWithError() публичный Метод

testIfErrorHandlerReturnsResponseDispatchReturnsTheResponse() публичный Метод

testInvokingMemoizesResponseIfNonePreviouslyPresent() публичный Метод

testInvokingWithInteropMiddlewareDispatchesIt() публичный Метод

testNoErrorAndHandleArityGreaterThanThreeTriggersNext() публичный Метод

testNoErrorAndHandleArityLessThanFourTriggersHandler() публичный Метод

testProcessRaisesExceptionForNonInteropHandlersWhenNoResponsePrototypeIsPresent() публичный Метод

testProcessRaisesExceptionForNonInteropHandlersWhenNotProvidedAServerRequest() публичный Метод

testProcessRaisesExceptionWhenCatchingAnExceptionAndNoResponsePrototypePresent() публичный Метод

testProcessUsesResponsePrototypeForNonInteropHandlerWhenPresent() публичный Метод

testProcessWillInjectMiddlewarePipeWithResponsePrototypeIfPipelineDoesNotHaveOne() публичный Метод

testProcessWillNotInjectMiddlewarePipeWithResponsePrototypeIfPipelineAlreadyHasOne() публичный Метод

testResponsePrototypeIsAbsentByDefault() публичный Метод

testReturnsValueFromNonErrorHandler() публичный Метод

testShouldAllowDispatchingPsr7Instances() публичный Метод

testThrowingExceptionInErrorHandlerTriggersNextWithException() публичный Метод

testThrowingExceptionInNonErrorHandlerTriggersNextWithException() публичный Метод

testThrowsThrowablesRaisedByCallableMiddlewareWhenRaiseThrowablesFlagIsEnabled() публичный Метод

testThrowsThrowablesRaisedByErrorMiddlewareWhenRaiseThrowablesFlagIsEnabled() публичный Метод

testThrowsThrowablesRaisedByInteropMiddlewareWhenRaiseThrowablesFlagIsEnabled() публичный Метод

testThrowsThrowablesRaisedByNextMiddlewareWhenRaiseThrowablesFlagIsEnabled() публичный Метод

testWillCatchPhp7Throwable() публичный Метод

throwablesProvider() публичный Метод

public throwablesProvider ( )