diff --git a/tests/Unit/Math/BigInteger/TestCase.php b/tests/Unit/Math/BigInteger/TestCase.php index e7f7bbeb..821e4280 100644 --- a/tests/Unit/Math/BigInteger/TestCase.php +++ b/tests/Unit/Math/BigInteger/TestCase.php @@ -406,4 +406,10 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase $temp = $this->getInstance(48); $this->assertSame($temp->toHex(true), '30'); } + + public function testZeroBase10() + { + $temp = $this->getInstance('00'); + $this->assertSame($temp->toString(), '0'); + } }