| @@ 64-71 (lines=8) @@ | ||
| 61 | $this->assertTrue($this->history->valid()); |
|
| 62 | } |
|
| 63 | ||
| 64 | public function testJsonHasCountryAndPopulation() |
|
| 65 | { |
|
| 66 | $fakeJson = json_decode(FakeData::WEATHER_HISTORY_WITH_COUNTRY_JSON, true); |
|
| 67 | $history = new WeatherHistory($fakeJson, 'Berlin'); |
|
| 68 | ||
| 69 | $history->rewind(); |
|
| 70 | $this->assertTrue($history->valid()); |
|
| 71 | } |
|
| 72 | ||
| 73 | public function testJsonWithRainKey() |
|
| 74 | { |
|
| @@ 73-80 (lines=8) @@ | ||
| 70 | $this->assertTrue($history->valid()); |
|
| 71 | } |
|
| 72 | ||
| 73 | public function testJsonWithRainKey() |
|
| 74 | { |
|
| 75 | $fakeJson = json_decode(FakeData::WEATHER_HISTORY_WITH_RAIN_JSON, true); |
|
| 76 | $history = new WeatherHistory($fakeJson, 'Berlin'); |
|
| 77 | ||
| 78 | $history->rewind(); |
|
| 79 | $this->assertTrue($history->valid()); |
|
| 80 | } |
|
| 81 | } |
|
| 82 | ||