Code Duplication    Length = 8-9 lines in 4 locations

tests/testsuite/StaticAccess/CurrencyInfoTest.php 4 locations

@@ 36-44 (lines=9) @@
33
        CurrencyInfo::getMapForCurrency('XXX');
34
    }
35
36
    public function testReturnsTheSymbolMap()
37
    {
38
        $map = CurrencyInfo::getSymbolMap();
39
        $this->assertInternalType('array', $map);
40
        $this->assertNotEmpty($map);
41
        $this->assertContainsOnly('string', $map);
42
        $this->assertArrayHasKey('IDR', $map);
43
        $this->assertSame('IDR', $map['IDR']);
44
    }
45
46
    public function testReturnsTheSymbolForGivenCurrency()
47
    {
@@ 53-61 (lines=9) @@
50
        $this->assertSame('IDR', CurrencyInfo::getSymbolForCurrency('IDR'));
51
    }
52
53
    public function testReturnsTheNativeSymbolMap()
54
    {
55
        $map = CurrencyInfo::getNativeSymbolMap();
56
        $this->assertInternalType('array', $map);
57
        $this->assertNotEmpty($map);
58
        $this->assertContainsOnly('string', $map);
59
        $this->assertArrayHasKey('IDR', $map);
60
        $this->assertSame('Rp', $map['IDR']);
61
    }
62
63
    public function testReturnsTheNativeSymbolForGivenCurrency()
64
    {
@@ 70-78 (lines=9) @@
67
        $this->assertSame('Rp', CurrencyInfo::getNativeSymbolForCurrency('IDR'));
68
    }
69
70
    public function testReturnsTheFractionDigitsMap()
71
    {
72
        $map = CurrencyInfo::getFractionDigitsMap();
73
        $this->assertInternalType('array', $map);
74
        $this->assertNotEmpty($map);
75
        $this->assertContainsOnly('int', $map);
76
        $this->assertArrayHasKey('IDR', $map);
77
        $this->assertSame(0, $map['IDR']);
78
    }
79
80
    public function testReturnsTheFractionDigitsForGivenCurrency()
81
    {
@@ 87-94 (lines=8) @@
84
        $this->assertSame(3, CurrencyInfo::getFractionDigitsForCurrency('JOD'));
85
    }
86
87
    public function testReturnsTheRoundingMap()
88
    {
89
        $map = CurrencyInfo::getRoundingMap();
90
        $this->assertInternalType('array', $map);
91
        $this->assertNotEmpty($map);
92
        $this->assertContainsOnly('float', $map);
93
        $this->assertSame(0.0, $map['IDR']);
94
    }
95
96
    public function testReturnsTheRoundingForGivenCurrency()
97
    {