@@ 167-174 (lines=8) @@ | ||
164 | /** |
|
165 | * @expectedException \Cmfcmf\OpenWeatherMap\Exception |
|
166 | */ |
|
167 | public function testParseXMLException() |
|
168 | { |
|
169 | $answer = 'I am not XML formatted data'; |
|
170 | $method = new \ReflectionMethod($this->owm, 'parseXML'); |
|
171 | $method->setAccessible(true); |
|
172 | ||
173 | $method->invoke($this->owm, $answer); |
|
174 | } |
|
175 | ||
176 | /** |
|
177 | * @expectedException \Cmfcmf\OpenWeatherMap\Exception |
|
@@ 192-199 (lines=8) @@ | ||
189 | /** |
|
190 | * @expectedException \Cmfcmf\OpenWeatherMap\Exception |
|
191 | */ |
|
192 | public function testParseJsonException() |
|
193 | { |
|
194 | $answer = 'I am not a json format data'; |
|
195 | $method = new \ReflectionMethod($this->owm, 'parseJson'); |
|
196 | $method->setAccessible(true); |
|
197 | ||
198 | $method->invoke($this->owm, $answer); |
|
199 | } |
|
200 | ||
201 | public function uvIndexExceptionDataProvider() |
|
202 | { |