assertSame($expected, (string) $actual); } /** * @param string $unscaledValue The expected unscaled value. * @param int $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()); } /** * @param string $numerator * @param string $denominator * @param BigRational $actual */ protected function assertBigRationalEquals($numerator, $denominator, BigRational $actual) { $this->assertSame($numerator, (string) $actual->getNumerator()); $this->assertSame($denominator, (string) $actual->getDenominator()); } }