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

testProtectedApiGetNextSuffix_ResetsOnAfter2Mld() public method

    public function testProtectedApiGetNextSuffix_ResetsOnAfter2Mld()
    {
        $channel = $this->createChannel();
        $this->setProtectedProperty($channel, 'counter', 2000000000.0);
        $cnt1 = $this->callProtectedMethod($channel, 'getNextSuffix');
        $cnt2 = $this->callProtectedMethod($channel, 'getNextSuffix');
        $cnt3 = $this->callProtectedMethod($channel, 'getNextSuffix');
        $this->assertSame('2000000000', $cnt1);
        $this->assertSame('1000000000', $cnt2);
        $this->assertSame('1000000001', $cnt3);
    }
ChannelTest