@@ 94-100 (lines=7) @@ | ||
91 | $this->assertSame($this->apiKey, $apiKey); |
|
92 | } |
|
93 | ||
94 | public function testGetWeather() |
|
95 | { |
|
96 | $weather = $this->weather; |
|
97 | $currentWeather = $weather->getWeather('Berlin', 'imperial', 'en', ''); |
|
98 | ||
99 | $this->assertInstanceOf('\Cmfcmf\OpenWeatherMap\CurrentWeather', $currentWeather); |
|
100 | } |
|
101 | ||
102 | public function testGetWeatherGroup() |
|
103 | { |
|
@@ 123-130 (lines=8) @@ | ||
120 | $this->assertInstanceOf('\Cmfcmf\OpenWeatherMap\WeatherForecast', $maxDay); |
|
121 | } |
|
122 | ||
123 | public function testGetDailyWeatherForecast() |
|
124 | { |
|
125 | $days = 16; |
|
126 | $weather = $this->weather; |
|
127 | $dailyForecast = $weather->getDailyWeatherForecast('Berlin', 'imperial', 'en', '', $days); |
|
128 | ||
129 | $this->assertInstanceOf('\Cmfcmf\OpenWeatherMap\WeatherForecast', $dailyForecast); |
|
130 | } |
|
131 | ||
132 | public function testGetWeatherHistory() |
|
133 | { |