CurrencyTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
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
    /**
18
     * Test for getCurrencyIso method
19
     */
20
    public function testGetCurrencyIso()
21
    {
22
        $this->assertSame('EUR', (new Currency())->getCurrencyIso('DE'));
23
        $this->assertSame('USD', (new Currency())->getCurrencyIso('US'));
24
        $this->assertEmpty((new Currency())->getCurrencyIso('FooBAR'));
25
    }
26
}