Code Duplication    Length = 10-10 lines in 2 locations

tests/GeoIPLocationTest.php 2 locations

@@ 37-46 (lines=10) @@
34
        $this->assertSame('EUR', $location->getCurrencyIso());
35
    }
36
37
    public function testGetGeoLocationFail()
38
    {
39
        $_SERVER['REMOTE_ADDR'] = '';
40
        $location = (new GeoIPLocation())->getGeoLocation();
41
42
        $this->assertInstanceOf('ipGeolocation\Location', $location);
43
44
        $this->assertFalse($location->getStatus());
45
        $this->assertSame('reserved range', $location->getMessage());
46
    }
47
48
    public function testGetGeoLocationIpInvalid()
49
    {
@@ 48-57 (lines=10) @@
45
        $this->assertSame('reserved range', $location->getMessage());
46
    }
47
48
    public function testGetGeoLocationIpInvalid()
49
    {
50
        $_SERVER['REMOTE_ADDR'] = '188.11098';
51
        $geoIp = new GeoIPLocation();
52
        $location = $geoIp->getGeoLocation();
53
54
        $this->assertFalse($location->getStatus());
55
        $this->assertSame('reserved range', $location->getMessage());
56
        $this->assertSame('127.0.0.1', $geoIp->getIpAddress());
57
    }
58
59
    public function testRequestInvalid()
60
    {