PriceFormatterTest::testFormat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
class PriceFormatterTest extends \WebCMS\Tests\EntityTestCase
4
{
5
    public function testFormat()
6
    {
7
        $locales = \WebCMS\Locales::getSystemLocales();
8
        \WebCMS\Helpers\PriceFormatter::setLocale($locales[0]);
9
        $price = \WebCMS\Helpers\PriceFormatter::format(1000);
10
11
        $this->assertEquals('$1,000.00', $price);
12
    }
13
}
14