Code Duplication    Length = 8-8 lines in 2 locations

tests/Exceptions/OpenWeatherMapExceptionTest.php 2 locations

@@ 149-156 (lines=8) @@
146
    /**
147
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception
148
     */
149
    public function testParseXMLException()
150
    {
151
        $answer = 'I am not XML formatted data';
152
        $method = new \ReflectionMethod($this->owm, 'parseXML');
153
        $method->setAccessible(true);
154
        
155
        $method->invoke($this->owm, $answer);
156
    }
157
158
    /**
159
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception
@@ 174-181 (lines=8) @@
171
    /**
172
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception
173
     */
174
    public function testParseJsonException()
175
    {
176
        $answer = 'I am not a json format data';
177
        $method = new \ReflectionMethod($this->owm, 'parseJson');
178
        $method->setAccessible(true);
179
        
180
        $method->invoke($this->owm, $answer);
181
    }
182
183
    public function uviExceptionDataProvider()
184
    {