Метод |
Описание |
|
createComponent ( ) : Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject |
|
|
createMatcher ( string[] | null $methods = [] ) : Symfony\Component\Routing\Matcher\UrlMatcher | PHPUnit_Framework_MockObject_MockObject |
|
|
createRouter ( Kraken\Network\NetworkComponentAwareInterface $aware, string[] | null $methods = null, mixed[] $params = [] ) : HttpRouter | PHPUnit_Framework_MockObject_MockObject |
|
|
createServer ( string[] | null $methods = [] ) : Kraken\Network\NetworkComponentAwareInterface | PHPUnit_Framework_MockObject_MockObject |
|
|
testApiAddRoute_AddsRoute_WhenRouteDoesNotExist ( ) |
|
|
testApiAddRoute_ReplacesRoute_WhenRouteDoesExist ( ) |
|
|
testApiAllowOrigin_BlocksAddress ( ) |
|
|
testApiConstructor_CreatesInstance ( ) |
|
|
testApiDestructor_DoesNotThrowException ( ) |
|
|
testApiDisallowOrigin_UnblocksAddress ( ) |
|
|
testApiExistsRoute_ReturnsFalse_WhenRouteDoesNotExist ( ) |
|
|
testApiExistsRoute_ReturnsTrue_WhenRouteDoesExist ( ) |
|
|
testApiGetAllowedOrigins ( ) |
|
|
testApiHandleConnect_DoesNothing ( ) |
|
|
testApiHandleDisconnect_DoesNothing_WhenConnectionControllerDoesNotExist ( ) |
|
|
testApiHandleDisconnect_PropagatesDisconnection_WhenConnectionControllerDoesExist ( ) |
|
|
testApiHandleError_ClosesConnectionWithCode500_WhenConnectionControllerDoesExistButThrowsException ( ) |
|
|
testApiHandleError_ClosesConnectionWithCode500_WhenConnectionControllerDoesNotExist ( ) |
|
|
testApiHandleError_PropagatesErrorToController_WhenConnectionControllerDoesExist ( ) |
|
|
testApiHandleMessage_ClosesConnectionWithCode403_WhenHttpRequestReceived_ButMatcherThrowsMethodNotAllowedException ( ) |
|
|
testApiHandleMessage_ClosesConnectionWithCode403_WhenHttpRequestReceived_ButOriginIsNotAllowed ( ) |
|
|
testApiHandleMessage_ClosesConnectionWithCode404_WhenHttpRequestReceived_ButMatcherThrowsResourceNotFoundException ( ) |
|
|
testApiHandleMessage_ClosesConnectionWithCode500_WhenHttpRequestReceived_ButMatcherThrowsException ( ) |
|
|
testApiHandleMessage_ClosesConnectionWithCode500_WhenNotHttpRequestReceived_AndControllerDoesNotExist ( ) |
|
|
testApiHandleMessage_HandlesConnectAndHandlesMessage_WhenHttpRequestReceived ( ) |
|
|
testApiHandleMessage_HandlesError_WhenHttpRequestReceived_ButHandleConnectThrowsException ( ) |
|
|
testApiHandleMessage_PropagatesMessage_WhenNotHttpRequestReceived_AndControllerDoesExist ( ) |
|
|
testApiIsOriginAllowed_ReturnsFalse_WhenIpIsNotBlocked ( ) |
|
|
testApiIsOriginAllowed_ReturnsTrue_WhenIpIsBlocked ( ) |
|
|
testApiRemoveRoute_DoesNothing_WhenRouteDoesNotExist ( ) |
|
|
testApiRemoveRoute_RemovesRoute_WhenRouteDoesExist ( ) |
|
|
testProtectedApiClose_ClosesSocket ( ) |
|
|