Kraken\_Unit\Channel\Encoder\EncoderTest::testApiWith_SetsProtocol PHP Method

testApiWith_SetsProtocol() public method

    public function testApiWith_SetsProtocol()
    {
        $encoder = $this->createEncoder();
        $protocol = $this->getProtectedProperty($encoder, 'protocol');
        $this->assertSame(null, $protocol);
        $encoder->with($new = $this->createProtocol());
        $protocol = $this->getProtectedProperty($encoder, 'protocol');
        $this->assertSame($new, $protocol);
    }