function testCurrencyPatterns()
{
$numberInfo = NumberFormatInfo::getCurrencyInstance();
//there should be 2 decimal places.
$this->assertEquals($numberInfo->DecimalDigits, 2);
$this->assertEquals($numberInfo->DecimalSeparator, '.');
$this->assertEquals($numberInfo->GroupSeparator, ',');
//there should be only 1 grouping of size 3
$groupsize = array(3, false);
$this->assertEquals($numberInfo->GroupSizes, $groupsize);
//the default negative pattern prefix and postfix
$negPattern = array('-¤', '');
$this->assertEquals($numberInfo->NegativePattern, $negPattern);
//the default positive pattern prefix and postfix
$negPattern = array('¤', '');
$this->assertEquals($numberInfo->PositivePattern, $negPattern);
//the default currency symbol
$this->assertEquals($numberInfo->CurrencySymbol, 'US$');
$this->assertEquals($numberInfo->getCurrencySymbol('JPY'), '¥');
$this->assertEquals($numberInfo->NegativeInfinitySymbol, '-∞');
$this->assertEquals($numberInfo->PositiveInfinitySymbol, '+∞');
$this->assertEquals($numberInfo->NegativeSign, '-');
$this->assertEquals($numberInfo->PositiveSign, '+');
$this->assertEquals($numberInfo->NaNSymbol, '�');
$this->assertEquals($numberInfo->PercentSymbol, '%');
$this->assertEquals($numberInfo->PerMilleSymbol, '‰');
}