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