|
@@ 89-96 (lines=8) @@
|
| 86 |
|
/** |
| 87 |
|
* @expectedException \Cmfcmf\OpenWeatherMap\Exception |
| 88 |
|
*/ |
| 89 |
|
public function testParseXMLException() |
| 90 |
|
{ |
| 91 |
|
$answer = 'I am not XML formatted data'; |
| 92 |
|
$method = new \ReflectionMethod($this->owm, 'parseXML'); |
| 93 |
|
$method->setAccessible(true); |
| 94 |
|
|
| 95 |
|
$method->invoke($this->owm, $answer); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
/** |
| 99 |
|
* @expectedException \Cmfcmf\OpenWeatherMap\Exception |
|
@@ 114-121 (lines=8) @@
|
| 111 |
|
/** |
| 112 |
|
* @expectedException \Cmfcmf\OpenWeatherMap\Exception |
| 113 |
|
*/ |
| 114 |
|
public function testParseJsonException() |
| 115 |
|
{ |
| 116 |
|
$answer = 'I am not a json format data'; |
| 117 |
|
$method = new \ReflectionMethod($this->owm, 'parseJson'); |
| 118 |
|
$method->setAccessible(true); |
| 119 |
|
|
| 120 |
|
$method->invoke($this->owm, $answer); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
/** |
| 124 |
|
* @expectedException \Cmfcmf\OpenWeatherMap\Exception |