You are here

function CurrencyWebTestCase::testRoundAmount in Currency 7.2

Test roundAmount().

File

currency/tests/CurrencyWebTestCase.test, line 46
Contains class CurrencyWebTestCase.

Class

CurrencyWebTestCase
Tests class Currency.

Code

function testRoundAmount() {
  $currency = currency_load('JPY');
  $this
    ->assertTrue($currency
    ->roundAmount('12.34'), '12.340');
  $this
    ->assertTrue($currency
    ->roundAmount('1234.5678'), '1234.568');
}