| @@ 39-46 (lines=8) @@ | ||
| 36 | /** |
|
| 37 | * @expectedException Exception |
|
| 38 | */ |
|
| 39 | public function testCacheException() |
|
| 40 | { |
|
| 41 | try { |
|
| 42 | $exception = new OpenWeatherMap($this->apiKey, null, true, 600); |
|
| 43 | } catch (\Eception $e) { |
|
| 44 | throw $e; |
|
| 45 | } |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @expectedException Exception |
|
| @@ 51-58 (lines=8) @@ | ||
| 48 | /** |
|
| 49 | * @expectedException Exception |
|
| 50 | */ |
|
| 51 | public function testSecondNotNumbericException() |
|
| 52 | { |
|
| 53 | try { |
|
| 54 | $exception = new OpenWeatherMap($this->apiKey, null, false, 'I am not numberic'); |
|
| 55 | } catch (\Exception $e) { |
|
| 56 | throw $e; |
|
| 57 | } |
|
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * @expectedException InvalidArgumentException |
|