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

CurrencyTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetCurrencyIso() 0 6 1
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
}