ProtobufTest\Binary\Platform\BcNegativeEncoderTest::testEncodeSFixed64 PHP Метод

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

public testEncodeSFixed64 ( )
    public function testEncodeSFixed64()
    {
        $encoder = new BcNegativeEncoder();
        $bytes = $encoder->encodeSFixed64(-123456789123456789);
        $expected = [1 => 41195, 2 => 21295, 3 => 25780, 4 => 65097];
        $this->assertEquals($expected, unpack('v*', $bytes));
    }