assertSame($expected, (string) BigInteger::of($actual)); } /** * @param string $unscaledValue The expected unscaled value. * @param integer $scale The expected scale. * @param BigDecimal $actual The BigDecimal instance to test. */ protected function assertBigDecimalEquals($unscaledValue, $scale, BigDecimal $actual) { $this->assertSame($unscaledValue, $actual->getUnscaledValue()); $this->assertSame($scale, $actual->getScale()); } }