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