Kraken\_Unit\Channel\ChannelTest::testProtectedApiCreateMessageProtocol_AcceptsStringProtocol PHP Method

testProtectedApiCreateMessageProtocol_AcceptsStringProtocol() public method

    public function testProtectedApiCreateMessageProtocol_AcceptsStringProtocol()
    {
        $channel = $this->createChannel();
        $message = 'message';
        $result = $this->callProtectedMethod($channel, 'createMessageProtocol', [$message]);
        $this->assertInstanceOf(Protocol::class, $result);
        $this->assertSame($message, $result->getMessage());
    }
ChannelTest