Kraken\_Unit\Channel\Protocol\ProtocolTest::testApiSetType_SetsType_WhenTypeIsSetAndOverwriteFlagIsSet PHP Method

testApiSetType_SetsType_WhenTypeIsSetAndOverwriteFlagIsSet() public method

    public function testApiSetType_SetsType_WhenTypeIsSetAndOverwriteFlagIsSet()
    {
        $protocol = $this->createProtocol('typeOld');
        $this->assertSame('typeOld', $protocol->getType());
        $protocol->setType('type', true);
        $this->assertSame('type', $protocol->getType());
    }
ProtocolTest