PayPal\Test\Common\FormatConverterTest::testPriceWithNoDecimalCurrencyInvalid PHP Method

testPriceWithNoDecimalCurrencyInvalid() public method

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