/** * @dataProvider squareRootRoundedValues */ public function testSquareRootIsRoundedCorrectly($number, $squareRoot) { $this->assertEquals($squareRoot, Calculator::sqrt($number)); }
/** * @dataProvider squareRootRoundedValues */ public function testSquareRootIsRoundedCorrectly($number, $squareRoot) { $this->assertEquals($squareRoot, Calculator::sqrt($number)); }