PHP Class PhlyTest\Conduit\MiddlewarePipeTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: phly/conduit

Méthodes publiques

Méthode Description
invalidHandlers ( )
nestedPaths ( )
rootPaths ( )
setUp ( )
testCanUseDecoratedRequestAndResponseDirectly ( )
testHandleInvokesFirstErrorHandlerOnErrorInChain ( )
testHandleInvokesOutHandlerIfQueueIsExhausted ( )
testHandleInvokesUntilFirstHandlerThatDoesNotCallNext ( )
testMiddlewareRequestPathMustBeTrimmedOffWithPipeRoutePath ( )
testMiddlewareTreatsBothSlashAndEmptyPathAsTheRootPath ( $path )
testNestedMiddlewareMatchesOnlyAtPathBoundaries ( $topPath, $nestedPath, $fullPath, $assertion )
testNestedMiddlewareMayInvokeDoneToInvokeNextOfParent ( )
testPipeThrowsExceptionForInvalidHandler ( $handler )
testPipeWillCreateErrorClosureForObjectImplementingHandle ( )
testReturnsOrigionalResponseIfQueueDoesNotReturnAResponse ( )
testReturnsResponseReturnedByQueue ( )
testSlashShouldBeAppendedInChildMiddlewareWhenRequestUriIncludesIt ( )
testSlashShouldNotBeAppendedInChildMiddlewareWhenLayerDoesNotIncludeIt ( )

Method Details

invalidHandlers() public méthode

public invalidHandlers ( )

nestedPaths() public méthode

public nestedPaths ( )

rootPaths() public méthode

public rootPaths ( )

setUp() public méthode

public setUp ( )

testCanUseDecoratedRequestAndResponseDirectly() public méthode

testHandleInvokesFirstErrorHandlerOnErrorInChain() public méthode

testHandleInvokesOutHandlerIfQueueIsExhausted() public méthode

testHandleInvokesUntilFirstHandlerThatDoesNotCallNext() public méthode

testMiddlewareRequestPathMustBeTrimmedOffWithPipeRoutePath() public méthode

testMiddlewareTreatsBothSlashAndEmptyPathAsTheRootPath() public méthode

testNestedMiddlewareMatchesOnlyAtPathBoundaries() public méthode

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

testNestedMiddlewareMayInvokeDoneToInvokeNextOfParent() public méthode

testPipeThrowsExceptionForInvalidHandler() public méthode

testPipeWillCreateErrorClosureForObjectImplementingHandle() public méthode

testReturnsOrigionalResponseIfQueueDoesNotReturnAResponse() public méthode

testReturnsResponseReturnedByQueue() public méthode

testSlashShouldBeAppendedInChildMiddlewareWhenRequestUriIncludesIt() public méthode

testSlashShouldNotBeAppendedInChildMiddlewareWhenLayerDoesNotIncludeIt() public méthode