PHP 클래스 ZendTest\Stratigility\MiddlewarePipeTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: zendframework/zend-stratigility

공개 프로퍼티들

프로퍼티 타입 설명
$deprecationsSuppressed
$errorHandler

공개 메소드들

메소드 설명
createFinalHandler ( ) : NoopFinalHandler
errorMiddleware ( )
invalidHandlers ( )
nestedPaths ( )
restoreErrorHandler ( )
rootPaths ( )
sampleMiddleware ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface Used to test that array callables are decorated correctly.
setUp ( )
suppressDeprecationNotice ( )
tearDown ( )
testCanComposeResponsePrototype ( )
testCanEnableRaiseThrowablesFlag ( )
testCanPipeInteropMiddleware ( )
testCanUseDecoratedRequestAndResponseDirectly ( )
testEnablingRaiseThrowablesCausesInvocationToThrowExceptions ( )
testEnablingRaiseThrowablesCausesProcessToThrowExceptions ( )
testHandleInvokesFirstErrorHandlerOnErrorInChain ( )
testHandleInvokesOutHandlerIfQueueIsExhausted ( )
testHandleInvokesUntilFirstHandlerThatDoesNotCallNext ( )
testMiddlewareRequestPathMustBeTrimmedOffWithPipeRoutePath ( )
testMiddlewareTreatsBothSlashAndEmptyPathAsTheRootPath ( $path )
testNestedMiddlewareMatchesOnlyAtPathBoundaries ( $topPath, $nestedPath, $fullPath, $assertion )
testNestedMiddlewareMayInvokeDoneToInvokeNextOfParent ( )
testNoResponsePrototypeComposeByDefault ( )
testOmittingFinalHandlerDuringInvocationRaisesDeprecationNotice ( )
testPassesOriginalResponseToFinalHandler ( ) Test that FinalHandler is passed the original response.
testPipeThrowsExceptionForInvalidHandler ( $handler )
testRaiseThrowablesFlagIsFalseByDefault ( )
testReturnsOrigionalResponseIfQueueDoesNotReturnAResponseAndNoFinalHandlerRegistered ( )
testReturnsResponseReturnedByQueue ( )
testSlashShouldBeAppendedInChildMiddlewareWhenRequestUriIncludesIt ( )
testSlashShouldNotBeAppendedInChildMiddlewareWhenLayerDoesNotIncludeIt ( )
testWillDecorateACallableDefiningADelegateArgumentUsingAlternateDecorator ( )
testWillDecorateCallableArrayMiddlewareWithoutErrors ( )
testWillDecorateCallableMiddlewareAsInteropMiddlewareIfResponsePrototypePresent ( )
testWillNotDecorateCallableErrorMiddlewareDuringPipingEvenWithResponsePrototypePresent ( $middleware )
testWillNotDecorateCallableMiddlewareAsInteropMiddlewareIfResponsePrototypeIsNotPresent ( )

메소드 상세

createFinalHandler() 공개 메소드

public createFinalHandler ( ) : NoopFinalHandler
리턴 Zend\Stratigility\NoopFinalHandler

errorMiddleware() 공개 메소드

public errorMiddleware ( )

invalidHandlers() 공개 메소드

public invalidHandlers ( )

nestedPaths() 공개 메소드

public nestedPaths ( )

restoreErrorHandler() 공개 메소드

public restoreErrorHandler ( )

rootPaths() 공개 메소드

public rootPaths ( )

sampleMiddleware() 공개 메소드

Used to test that array callables are decorated correctly.
public sampleMiddleware ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface
$next callable
리턴 Psr\Http\Message\ResponseInterface

setUp() 공개 메소드

public setUp ( )

suppressDeprecationNotice() 공개 메소드

tearDown() 공개 메소드

public tearDown ( )

testCanComposeResponsePrototype() 공개 메소드

testCanEnableRaiseThrowablesFlag() 공개 메소드

testCanPipeInteropMiddleware() 공개 메소드

testCanUseDecoratedRequestAndResponseDirectly() 공개 메소드

testEnablingRaiseThrowablesCausesInvocationToThrowExceptions() 공개 메소드

testEnablingRaiseThrowablesCausesProcessToThrowExceptions() 공개 메소드

testHandleInvokesFirstErrorHandlerOnErrorInChain() 공개 메소드

testHandleInvokesOutHandlerIfQueueIsExhausted() 공개 메소드

testHandleInvokesUntilFirstHandlerThatDoesNotCallNext() 공개 메소드

testMiddlewareRequestPathMustBeTrimmedOffWithPipeRoutePath() 공개 메소드

testMiddlewareTreatsBothSlashAndEmptyPathAsTheRootPath() 공개 메소드

testNestedMiddlewareMatchesOnlyAtPathBoundaries() 공개 메소드

public testNestedMiddlewareMatchesOnlyAtPathBoundaries ( $topPath, $nestedPath, $fullPath, $assertion )

testNestedMiddlewareMayInvokeDoneToInvokeNextOfParent() 공개 메소드

testNoResponsePrototypeComposeByDefault() 공개 메소드

testOmittingFinalHandlerDuringInvocationRaisesDeprecationNotice() 공개 메소드

testPassesOriginalResponseToFinalHandler() 공개 메소드

Tests that MiddlewarePipe passes the original response passed to it when creating the FinalHandler instance, and that FinalHandler compares the response passed to it on invocation to its original response. If the two differ, the response passed during invocation should be returned unmodified; this is an indication that a middleware has provided a response, and is simply passing further up the chain to allow further processing (e.g., to allow an application-wide logger at the end of the request).

testPipeThrowsExceptionForInvalidHandler() 공개 메소드

testRaiseThrowablesFlagIsFalseByDefault() 공개 메소드

testReturnsOrigionalResponseIfQueueDoesNotReturnAResponseAndNoFinalHandlerRegistered() 공개 메소드

testReturnsResponseReturnedByQueue() 공개 메소드

testSlashShouldBeAppendedInChildMiddlewareWhenRequestUriIncludesIt() 공개 메소드

testSlashShouldNotBeAppendedInChildMiddlewareWhenLayerDoesNotIncludeIt() 공개 메소드

testWillDecorateACallableDefiningADelegateArgumentUsingAlternateDecorator() 공개 메소드

testWillDecorateCallableArrayMiddlewareWithoutErrors() 공개 메소드

testWillDecorateCallableMiddlewareAsInteropMiddlewareIfResponsePrototypePresent() 공개 메소드

testWillNotDecorateCallableErrorMiddlewareDuringPipingEvenWithResponsePrototypePresent() 공개 메소드

testWillNotDecorateCallableMiddlewareAsInteropMiddlewareIfResponsePrototypeIsNotPresent() 공개 메소드

프로퍼티 상세

$deprecationsSuppressed 공개적으로 프로퍼티

public $deprecationsSuppressed

$errorHandler 공개적으로 프로퍼티

public $errorHandler