/** * method toStringByLocale * when calledWithProperLocaleAndMoneyObjects * should returnLocalizedAmountAndCurrencyString * @dataProvider getLocaleAmountCurrencyAndExpectedString */ public function test_toStringByLocale_calledWithProperLocaleAndMoneyObjects_returnLocalizedAmountAndCurrencyString($locale, $amount, $currency, $expected) { $sut = new MoneyFormatter(); $actual = $sut->toStringByLocale($locale, new Money($amount, new Currency($currency))); $this->assertEquals($expected, $actual, 'Test failed for locale: ' . $locale); }