PHP Class PhlyTest\Conduit\FinalHandlerTest

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

Méthodes publiques

Méthode Description
setUp ( )
test404ResponseIncludesOriginalRequestUri ( )
testCreates404ResponseWhenNoErrorIsPresent ( )
testInvokingWithErrorAndNoStatusCodeSetsStatusTo500 ( )
testInvokingWithErrorInNonProductionModeSetsResponseBodyToError ( )
testInvokingWithErrorInProductionSetsResponseToReasonPhrase ( )
testInvokingWithExceptionInNonProductionModeIncludesExceptionMessageInResponseBody ( )
testInvokingWithExceptionInNonProductionModeIncludesTraceInResponseBody ( )
testInvokingWithExceptionWithInvalidCodeSetsStatusTo500 ( )
testInvokingWithExceptionWithValidCodeSetsStatusToExceptionCode ( )
testTriggersOnErrorCallableWithErrorWhenPresent ( )

Method Details

setUp() public méthode

public setUp ( )

test404ResponseIncludesOriginalRequestUri() public méthode

testCreates404ResponseWhenNoErrorIsPresent() public méthode

testInvokingWithErrorAndNoStatusCodeSetsStatusTo500() public méthode

testInvokingWithErrorInNonProductionModeSetsResponseBodyToError() public méthode

testInvokingWithErrorInProductionSetsResponseToReasonPhrase() public méthode

testInvokingWithExceptionInNonProductionModeIncludesExceptionMessageInResponseBody() public méthode

testInvokingWithExceptionInNonProductionModeIncludesTraceInResponseBody() public méthode

testInvokingWithExceptionWithInvalidCodeSetsStatusTo500() public méthode

testInvokingWithExceptionWithValidCodeSetsStatusToExceptionCode() public méthode

testTriggersOnErrorCallableWithErrorWhenPresent() public méthode