| @@ 63-73 (lines=11) @@ | ||
| 60 | /** |
|
| 61 | * @expectedException InvalidArgumentException |
|
| 62 | */ |
|
| 63 | public function testGetWeatherForecastException() |
|
| 64 | { |
|
| 65 | $days = 20; |
|
| 66 | $weather = $this->weather; |
|
| 67 | ||
| 68 | try { |
|
| 69 | $argException = $weather->getWeatherForecast('Berlin', 'imperial', 'en', '', $days); |
|
| 70 | } catch (\InvalidArgumentException $e) { |
|
| 71 | throw $e; |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * @expectedException InvalidArgumentException |
|
| @@ 78-88 (lines=11) @@ | ||
| 75 | /** |
|
| 76 | * @expectedException InvalidArgumentException |
|
| 77 | */ |
|
| 78 | public function testGetDailyWeatherForecastException() |
|
| 79 | { |
|
| 80 | $days = 20; |
|
| 81 | $weather = $this->weather; |
|
| 82 | ||
| 83 | try { |
|
| 84 | $argException = $weather->getDailyWeatherForecast('Berlin', 'imperial', 'en', '', $days); |
|
| 85 | } catch (\InvalidArgumentException $e) { |
|
| 86 | throw $e; |
|
| 87 | } |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * @expectedException \Cmfcmf\OpenWeatherMap\Exception |
|
| @@ 135-144 (lines=10) @@ | ||
| 132 | /** |
|
| 133 | * @expectedException InvalidArgumentException |
|
| 134 | */ |
|
| 135 | public function testGetRawDailyForecastDataInvalidArgumentException() |
|
| 136 | { |
|
| 137 | $weather = $this->weather; |
|
| 138 | ||
| 139 | try { |
|
| 140 | $argException = $weather->getRawDailyForecastData('Berlin', 'imperial', 'en', '', 'xml', 20); |
|
| 141 | } catch (\InvalidArgumentException $e) { |
|
| 142 | throw $e; |
|
| 143 | } |
|
| 144 | } |
|
| 145 | ||
| 146 | /** |
|
| 147 | * @expectedException InvalidArgumentException |
|