PHP Class Kraken\_Unit\Channel\Extra\ResponseTest

Inheritance: extends Kraken\Test\TUnit
Datei anzeigen Open project: kraken-php/framework

Public Methods

Method 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

Method Description
createChannelMock ( string $name ) : Channel | PHPUnit_Framework_MockObject_MockObject

Method Details

createProtocol() public method

public createProtocol ( ) : Protocol
return Kraken\Channel\Protocol\Protocol

createResponse() public method

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[]
return Kraken\Channel\Extra\Response | PHPUnit_Framework_MockObject_MockObject

testApiCall_CallsSendMethodWithPromise() public method

testApiConstrutor_DoesNotThrowException() public method

testApiDestructor_DoesNotThrowException() public method

testApiInvoke_CallsSendMethodWithPromise() public method

testApiSend_SendsMessageAsException_OnFailure() public method

testApiSend_SendsMessageAsMessage_OnSuccess() public method