|
@@ 140-147 (lines=8) @@
|
| 137 |
|
/** |
| 138 |
|
* @expectedException \Cmfcmf\OpenWeatherMap\Exception |
| 139 |
|
*/ |
| 140 |
|
public function testParseXMLException() |
| 141 |
|
{ |
| 142 |
|
$answer = 'I am not XML formatted data'; |
| 143 |
|
$method = new \ReflectionMethod($this->owm, 'parseXML'); |
| 144 |
|
$method->setAccessible(true); |
| 145 |
|
|
| 146 |
|
$method->invoke($this->owm, $answer); |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
/** |
| 150 |
|
* @expectedException \Cmfcmf\OpenWeatherMap\Exception |
|
@@ 165-172 (lines=8) @@
|
| 162 |
|
/** |
| 163 |
|
* @expectedException \Cmfcmf\OpenWeatherMap\Exception |
| 164 |
|
*/ |
| 165 |
|
public function testParseJsonException() |
| 166 |
|
{ |
| 167 |
|
$answer = 'I am not a json format data'; |
| 168 |
|
$method = new \ReflectionMethod($this->owm, 'parseJson'); |
| 169 |
|
$method->setAccessible(true); |
| 170 |
|
|
| 171 |
|
$method->invoke($this->owm, $answer); |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
public function uviExceptionDataProvider() |
| 175 |
|
{ |