PHP Class ZendTest\Stratigility\FinalHandlerTest

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

Public Properties

Property Type Description
$errorHandler

Public Methods

Method Description
restoreErrorHandler ( )
setUp ( )
tearDown ( )
test404ResponseIncludesOriginalRequestUri ( )
testCanReplaceOriginalResponseAndBodySizeAfterConstruction ( )
testCreates404ResponseWhenNoErrorIsPresent ( )
testErrorResponsePreservesResponseReasonPhraseIfStatusCodeMatchesExceptionCode ( )
testErrorResponseUsesStandardHttpStatusCodeReasonPhraseIfExceptionCodeCausesStatusCodeToChange ( )
testInvokingWithErrorAndNoEnvironmentModeSetDoesNotSetResponseBodyToError ( )
testInvokingWithErrorAndNoStatusCodeSetsStatusTo500 ( )
testInvokingWithErrorInNonProductionModeSetsResponseBodyToError ( )
testInvokingWithErrorInProductionSetsResponseToReasonPhrase ( )
testInvokingWithExceptionAndNoEnvironmentModeSetDoesNotIncludeExceptionMessageInResponseBody ( )
testInvokingWithExceptionAndNoEnvironmentModeSetDoesNotIncludeTraceInResponseBody ( )
testInvokingWithExceptionInNonProductionModeIncludesExceptionMessageInResponseBody ( )
testInvokingWithExceptionInNonProductionModeIncludesPrevTraceInResponseBody ( )
testInvokingWithExceptionInNonProductionModeIncludesTraceInResponseBody ( )
testInvokingWithExceptionWithInvalidCodeSetsStatusTo500 ( )
testInvokingWithExceptionWithValidCodeSetsStatusToExceptionCode ( )
testReturnsResponseIfBodyLengthHasChanged ( )
testReturnsResponseIfItDoesNotMatchResponsePassedToConstructor ( )
testShouldNotDecoratePsrResponseAsStratigilityCompletedResponseWhenCreating404s ( )
testShouldNotDecoratePsrResponseAsStratigilityCompletedResponseWhenHandlingErrors ( )
testShouldNotMarkStratigilityResponseAsCompleteWhenCreating404s ( )
testShouldNotMarkStratigilityResponseAsCompleteWhenHandlingErrors ( )
testTriggersOnErrorCallableWithErrorWhenPresent ( )

Method Details

restoreErrorHandler() public method

public restoreErrorHandler ( )

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

test404ResponseIncludesOriginalRequestUri() public method

testCanReplaceOriginalResponseAndBodySizeAfterConstruction() public method

testCreates404ResponseWhenNoErrorIsPresent() public method

testErrorResponsePreservesResponseReasonPhraseIfStatusCodeMatchesExceptionCode() public method

testErrorResponseUsesStandardHttpStatusCodeReasonPhraseIfExceptionCodeCausesStatusCodeToChange() public method

testInvokingWithErrorAndNoEnvironmentModeSetDoesNotSetResponseBodyToError() public method

testInvokingWithErrorAndNoStatusCodeSetsStatusTo500() public method

testInvokingWithErrorInNonProductionModeSetsResponseBodyToError() public method

testInvokingWithErrorInProductionSetsResponseToReasonPhrase() public method

testInvokingWithExceptionAndNoEnvironmentModeSetDoesNotIncludeExceptionMessageInResponseBody() public method

testInvokingWithExceptionAndNoEnvironmentModeSetDoesNotIncludeTraceInResponseBody() public method

testInvokingWithExceptionInNonProductionModeIncludesExceptionMessageInResponseBody() public method

testInvokingWithExceptionInNonProductionModeIncludesPrevTraceInResponseBody() public method

testInvokingWithExceptionInNonProductionModeIncludesTraceInResponseBody() public method

testInvokingWithExceptionWithInvalidCodeSetsStatusTo500() public method

testInvokingWithExceptionWithValidCodeSetsStatusToExceptionCode() public method

testReturnsResponseIfBodyLengthHasChanged() public method

testReturnsResponseIfItDoesNotMatchResponsePassedToConstructor() public method

testShouldNotDecoratePsrResponseAsStratigilityCompletedResponseWhenCreating404s() public method

testShouldNotDecoratePsrResponseAsStratigilityCompletedResponseWhenHandlingErrors() public method

testShouldNotMarkStratigilityResponseAsCompleteWhenCreating404s() public method

testShouldNotMarkStratigilityResponseAsCompleteWhenHandlingErrors() public method

testTriggersOnErrorCallableWithErrorWhenPresent() public method

Property Details

$errorHandler public property

public $errorHandler