/** * @param string $code * @param array $modelData * @param int $expectation * @dataProvider getCastedAmountDataProvider */ public function testGetCastedAmount($code, $modelData, $expectation) { $this->row->setData($modelData); $this->assertEquals($expectation, $this->row->getCastedAmount($code)); }