/** * @test constructWithCorrectFormat * @dataProvider correctFormat * * @param string $string * @param int $scale * @param string $value * @param string $case */ public function constructWithCorrectFormat($string, $scale, $value, $case) { $decimal = new BigDecimal($string, $scale); $this->assertSame($value, $decimal->value(), $case); }