PHP Класс Kraken\_Unit\Channel\Extra\ResponseTest

Наследование: extends Kraken\Test\TUnit
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )

Приватные методы

Метод Описание
createChannelMock ( string $name ) : Channel | PHPUnit_Framework_MockObject_MockObject

Описание методов

createProtocol() публичный Метод

public createProtocol ( ) : Protocol
Результат Kraken\Channel\Protocol\Protocol

createResponse() публичный Метод

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[]
Результат Kraken\Channel\Extra\Response | PHPUnit_Framework_MockObject_MockObject

testApiCall_CallsSendMethodWithPromise() публичный Метод

testApiConstrutor_DoesNotThrowException() публичный Метод

testApiDestructor_DoesNotThrowException() публичный Метод

testApiInvoke_CallsSendMethodWithPromise() публичный Метод

testApiSend_SendsMessageAsException_OnFailure() публичный Метод

testApiSend_SendsMessageAsMessage_OnSuccess() публичный Метод