Code Duplication    Length = 8-8 lines in 2 locations

tests/Exceptions/OpenWeatherMapExceptionTest.php 2 locations

@@ 131-138 (lines=8) @@
128
    /**
129
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception
130
     */
131
    public function testParseXMLException()
132
    {
133
        $answer = 'I am not XML formatted data';
134
        $method = new \ReflectionMethod($this->owm, 'parseXML');
135
        $method->setAccessible(true);
136
        
137
        $method->invoke($this->owm, $answer);
138
    }
139
140
    /**
141
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception
@@ 156-163 (lines=8) @@
153
    /**
154
     * @expectedException \Cmfcmf\OpenWeatherMap\Exception
155
     */
156
    public function testParseJsonException()
157
    {
158
        $answer = 'I am not a json format data';
159
        $method = new \ReflectionMethod($this->owm, 'parseJson');
160
        $method->setAccessible(true);
161
        
162
        $method->invoke($this->owm, $answer);
163
    }
164
}
165