@@ -41,7 +41,7 @@ class FakeData
4141 "wind":{"speed":5.71,"deg":229.501},
4242 "dt_txt":"2014-07-23 09:00:00"
4343 },{
44- "id":1851632 ,
44+ "id":1851633 ,
4545 "dt":1406106000,
4646 "coord":{"lon":138.933334,"lat":34.966671},
4747 "sys":{"type":3,"id":168940,"message":0.0297,"country":"US","sunrise":1427723751,"sunset":1427768967},
@@ -57,7 +57,7 @@ class FakeData
5757 },
5858 "weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],
5959 "clouds":{"all":88},
60- "wind":{"speed":5.71,"deg":229.501 },
60+ "wind":{"speed":5.71,"deg":null },
6161 "dt_txt":"2014-07-23 09:00:00"
6262 }]
6363 } ' ;
@@ -127,4 +127,26 @@ public static function forecastXML()
127127 <lastupdate value="2017-01-02T12:20:00"></lastupdate>
128128</current>
129129XML ;
130+
131+ const CURRENT_WEATHER_XML_NO_WIND_DIRECTION = <<<XML
132+ <current>
133+ <city id="2950159" name="Berlin">
134+ <coord lon="13.41" lat="52.52"></coord>
135+ <country>DE</country>
136+ <sun rise="2017-01-02T07:16:51" set="2017-01-02T15:04:50"></sun>
137+ </city>
138+ <temperature value="36.48" min="35.6" max="37.4" unit="fahrenheit"></temperature>
139+ <humidity value="86" unit="%"></humidity>
140+ <pressure value="1014" unit="hPa"></pressure>
141+ <wind>
142+ <speed value="9.17" name="Fresh Breeze"></speed>
143+ <gusts></gusts>
144+ </wind>
145+ <clouds value="75" name="broken clouds"></clouds>
146+ <visibility value="8000"></visibility>
147+ <precipitation mode="no"></precipitation>
148+ <weather number="500" value="light rain" icon="10d"></weather>
149+ <lastupdate value="2017-01-02T12:20:00"></lastupdate>
150+ </current>
151+ XML ;
130152}
0 commit comments