PHP Class Kraken\_Unit\Channel\Extra\RequestTest

Inheritance: extends Kraken\Test\TUnit
Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode Description
createRequest ( string $name, string | Kraken\Channel\Protocol\ProtocolInterface $message, mixed[] $params = [], string[] $methods = [] ) : Request | PHPUnit_Framework_MockObject_MockObject
testApiCall_CallsSendMethodWithPromise ( )
testApiConstrutor_AllowsProtocolMessage ( )
testApiConstrutor_DoesNotThrowException ( )
testApiConstrutor_SetsDefaultParams ( )
testApiConstrutor_SetsPassedParams ( )
testApiConstrutor_TurnsStringMessageToProtocol ( )
testApiDestructor_DoesNotThrowException ( )
testApiInvoke_CallsSendMethodWithPromise ( )
testApiRetryOrReset_RejectsPromiseInRetry_WhenRetriesLimitIsReached ( )
testApiRetryOrReset_ResetsInRetryUsingTimer_WhenIntervalIsGreaterThanZero ( )
testApiRetryOrReset_ResetsInRetry_WhenIntervalIsEqualToZero ( )
testApiRetryOrReset_ResetsWhenExceptionIsTaskIncomplete ( )
testApiSend_CallsSendMethodOnChannel ( )
testApiSend_RejectsPromiseOnFailure ( )
testApiSend_ResolvesPromiseOnSuccess ( )
testApiSend_ReturnsImmediatelyWhenNonPendingPromisePassed ( )
testApiSend_TriesToRetryOnCancel ( )

Private Methods

Méthode Description
createChannelMock ( string $name ) : Channel | PHPUnit_Framework_MockObject_MockObject

Method Details

createRequest() public méthode

public createRequest ( string $name, string | Kraken\Channel\Protocol\ProtocolInterface $message, mixed[] $params = [], string[] $methods = [] ) : Request | PHPUnit_Framework_MockObject_MockObject
$name string
$message string | Kraken\Channel\Protocol\ProtocolInterface
$params mixed[]
$methods string[]
Résultat Kraken\Channel\Extra\Request | PHPUnit_Framework_MockObject_MockObject

testApiCall_CallsSendMethodWithPromise() public méthode

testApiConstrutor_AllowsProtocolMessage() public méthode

testApiConstrutor_DoesNotThrowException() public méthode

testApiConstrutor_SetsDefaultParams() public méthode

testApiConstrutor_SetsPassedParams() public méthode

testApiConstrutor_TurnsStringMessageToProtocol() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiInvoke_CallsSendMethodWithPromise() public méthode

testApiRetryOrReset_RejectsPromiseInRetry_WhenRetriesLimitIsReached() public méthode

testApiRetryOrReset_ResetsInRetryUsingTimer_WhenIntervalIsGreaterThanZero() public méthode

testApiRetryOrReset_ResetsInRetry_WhenIntervalIsEqualToZero() public méthode

testApiRetryOrReset_ResetsWhenExceptionIsTaskIncomplete() public méthode

testApiSend_CallsSendMethodOnChannel() public méthode

testApiSend_RejectsPromiseOnFailure() public méthode

testApiSend_ResolvesPromiseOnSuccess() public méthode

testApiSend_ReturnsImmediatelyWhenNonPendingPromisePassed() public méthode

testApiSend_TriesToRetryOnCancel() public méthode