public function testSimple($nr, $answer, $digits) { $x = Decimal::fromString($nr); $arcsecX = $x->arcsec($digits); $this->assertTrue(Decimal::fromString($answer)->equals($arcsecX), "The answer must be " . $answer . ", but was " . $arcsecX); }