PHP Class Kraken\_Unit\Channel\Extra\ResponseTest

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

Méthodes publiques

Méthode Description
createProtocol ( ) : Protocol
createResponse ( Kraken\Channel\Protocol\ProtocolInterface $protocol, string | string[] | Erro\Error | Exceptio\Exception $message, mixed[] $params = [], string[] $methods = [] ) : Response | PHPUnit_Framework_MockObject_MockObject
testApiCall_CallsSendMethodWithPromise ( )
testApiConstrutor_DoesNotThrowException ( )
testApiDestructor_DoesNotThrowException ( )
testApiInvoke_CallsSendMethodWithPromise ( )
testApiSend_SendsMessageAsException_OnFailure ( )
testApiSend_SendsMessageAsMessage_OnSuccess ( )

Private Methods

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

Method Details

createProtocol() public méthode

public createProtocol ( ) : Protocol
Résultat Kraken\Channel\Protocol\Protocol

createResponse() public méthode

public createResponse ( Kraken\Channel\Protocol\ProtocolInterface $protocol, string | string[] | Erro\Error | Exceptio\Exception $message, mixed[] $params = [], string[] $methods = [] ) : Response | PHPUnit_Framework_MockObject_MockObject
$protocol Kraken\Channel\Protocol\ProtocolInterface
$message string | string[] | Erro\Error | Exceptio\Exception
$params mixed[]
$methods string[]
Résultat Kraken\Channel\Extra\Response | PHPUnit_Framework_MockObject_MockObject

testApiCall_CallsSendMethodWithPromise() public méthode

testApiConstrutor_DoesNotThrowException() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiInvoke_CallsSendMethodWithPromise() public méthode

testApiSend_SendsMessageAsException_OnFailure() public méthode

testApiSend_SendsMessageAsMessage_OnSuccess() public méthode