Completed
Push — master ( 961164...c5e573 )
by Yasir
01:25
created

CurrencyTest::testGetCurrencyIso()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace ipGeolocation\tests;
4
5
use ipGeolocation\Currency;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Tests for CurrencyTest class
10
 *
11
 * PHP version 7
12
 *
13
 * @author yasir khurshid <[email protected]>
14
 */
15
class CurrencyTest extends TestCase
16
{
17
    public function testGetCurrencyIso()
18
    {
19
        $this->assertSame('EUR', (new Currency())->getCurrencyIso('DE'));
20
        $this->assertSame('USD', (new Currency())->getCurrencyIso('US'));
21
        $this->assertEmpty((new Currency())->getCurrencyIso('FooBAR'));
22
    }
23
}