public function testPriceWithNoDecimalCurrencyInvalid($input) { try { FormatConverter::formatToPrice("1.234", $input); } catch (\InvalidArgumentException $ex) { $this->assertContains("value cannot have decimals for", $ex->getMessage()); } }