Kraken\_Unit\Channel\Encoder\EncoderTest::testApiDecode_DecodesStringUsingPassedParser PHP Метод

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

    public function testApiDecode_DecodesStringUsingPassedParser()
    {
        $encoder = $this->createEncoder();
        $protocol = $this->createProtocol();
        $result = $encoder->with($protocol)->decode($str = '{}');
        $this->assertInstanceOf(ProtocolInterface::class, $result);
    }