Protobuf\Binary\Platform\InvalidNegativeEncoder::encodeVarint PHP Метод

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

public encodeVarint ( $varint )
    public function encodeVarint($varint)
    {
        throw new RuntimeException("Negative integers are only supported with GMP or BC (64bit) intextensions.");
    }

Usage Example

 /**
  * @expectedException RuntimeException
  * @expectedExceptionMessage Negative integers are only supported with GMP or BC (64bit) intextensions.
  */
 public function testEncodeVarintException()
 {
     $encoder = new InvalidNegativeEncoder();
     $encoder->encodeVarint(-1);
 }
InvalidNegativeEncoder