Code Duplication    Length = 8-8 lines in 2 locations

tests/Exceptions/OpenWeatherMapExceptionTest.php 2 locations

@@ 125-132 (lines=8) @@
122
    /**
123
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception
124
     */
125
    public function testParseXMLException()
126
    {
127
        $answer = 'I am not XML formatted data';
128
        $method = new \ReflectionMethod($this->owm, 'parseXML');
129
        $method->setAccessible(true);
130
131
        $method->invoke($this->owm, $answer);
132
    }
133
134
    /**
135
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception
@@ 150-157 (lines=8) @@
147
    /**
148
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception
149
     */
150
    public function testParseJsonException()
151
    {
152
        $answer = 'I am not a json format data';
153
        $method = new \ReflectionMethod($this->owm, 'parseJson');
154
        $method->setAccessible(true);
155
156
        $method->invoke($this->owm, $answer);
157
    }
158
159
    /**
160
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception