JBZoo\PHPUnit\RoundTest::testClassic PHP Method

testClassic() public method

public testClassic ( )
    public function testClassic()
    {
        $value = '123.456789';
        $rType = Formatter::ROUND_CLASSIC;
        isBatch(array(array('0 eur', val($value)->round(-3, $rType)->dump(false)), array('100 eur', val($value)->round(-2, $rType)->dump(false)), array('120 eur', val($value)->round(-1, $rType)->dump(false)), array('123 eur', val($value)->round(0, $rType)->dump(false)), array('123.5 eur', val($value)->round(1, $rType)->dump(false)), array('123.46 eur', val($value)->round(2, $rType)->dump(false)), array('123.457 eur', val($value)->round(3, $rType)->dump(false))));
    }