Kraken\_Unit\Channel\Extra\ResponseTest::createResponse PHP Method

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
    public function createResponse($protocol, $message, $params = [], $methods = [])
    {
        return $this->getMock(Response::class, $methods, [$this->createChannelMock('channelName'), $protocol, $message, $params]);
    }