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

testApiSetException_SetsException_WhenExceptionIsSetAndOverwriteFlagIsSet() public method

    public function testApiSetException_SetsException_WhenExceptionIsSetAndOverwriteFlagIsSet()
    {
        $protocol = $this->createProtocol('', '', '', '', '', 'exceptionOld');
        $this->assertSame('exceptionOld', $protocol->getException());
        $protocol->setException('exception', true);
        $this->assertSame('exception', $protocol->getException());
    }
ProtocolTest