PHP Class PhlyTest\Conduit\MiddlewarePipeTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: phly/conduit

Public Methods

Method 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 method

public invalidHandlers ( )

nestedPaths() public method

public nestedPaths ( )

rootPaths() public method

public rootPaths ( )

setUp() public method

public setUp ( )

testCanUseDecoratedRequestAndResponseDirectly() public method

testHandleInvokesFirstErrorHandlerOnErrorInChain() public method

testHandleInvokesOutHandlerIfQueueIsExhausted() public method

testHandleInvokesUntilFirstHandlerThatDoesNotCallNext() public method

testMiddlewareRequestPathMustBeTrimmedOffWithPipeRoutePath() public method

testMiddlewareTreatsBothSlashAndEmptyPathAsTheRootPath() public method

testNestedMiddlewareMatchesOnlyAtPathBoundaries() public method

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

testNestedMiddlewareMayInvokeDoneToInvokeNextOfParent() public method

testPipeThrowsExceptionForInvalidHandler() public method

testPipeWillCreateErrorClosureForObjectImplementingHandle() public method

testReturnsOrigionalResponseIfQueueDoesNotReturnAResponse() public method

testReturnsResponseReturnedByQueue() public method

testSlashShouldBeAppendedInChildMiddlewareWhenRequestUriIncludesIt() public method

testSlashShouldNotBeAppendedInChildMiddlewareWhenLayerDoesNotIncludeIt() public method