PHP Class PhlyTest\Conduit\FinalHandlerTest

Inheritance: extends PHPUnit_Framework_TestCase
Exibir arquivo Open project: phly/conduit

Public Methods

Method Description
setUp ( )
test404ResponseIncludesOriginalRequestUri ( )
testCreates404ResponseWhenNoErrorIsPresent ( )
testInvokingWithErrorAndNoStatusCodeSetsStatusTo500 ( )
testInvokingWithErrorInNonProductionModeSetsResponseBodyToError ( )
testInvokingWithErrorInProductionSetsResponseToReasonPhrase ( )
testInvokingWithExceptionInNonProductionModeIncludesExceptionMessageInResponseBody ( )
testInvokingWithExceptionInNonProductionModeIncludesTraceInResponseBody ( )
testInvokingWithExceptionWithInvalidCodeSetsStatusTo500 ( )
testInvokingWithExceptionWithValidCodeSetsStatusToExceptionCode ( )
testTriggersOnErrorCallableWithErrorWhenPresent ( )

Method Details

setUp() public method

public setUp ( )

test404ResponseIncludesOriginalRequestUri() public method

testCreates404ResponseWhenNoErrorIsPresent() public method

testInvokingWithErrorAndNoStatusCodeSetsStatusTo500() public method

testInvokingWithErrorInNonProductionModeSetsResponseBodyToError() public method

testInvokingWithErrorInProductionSetsResponseToReasonPhrase() public method

testInvokingWithExceptionInNonProductionModeIncludesExceptionMessageInResponseBody() public method

testInvokingWithExceptionInNonProductionModeIncludesTraceInResponseBody() public method

testInvokingWithExceptionWithInvalidCodeSetsStatusTo500() public method

testInvokingWithExceptionWithValidCodeSetsStatusToExceptionCode() public method

testTriggersOnErrorCallableWithErrorWhenPresent() public method