File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public static function forecastXML()
65
65
</meta>
66
66
<sun rise="2016-12-28T07:17:18" set="2016-12-28T14:59:55"></sun>
67
67
<forecast>
68
- <time day="2016-12-20 ">
68
+ <time day=" ' . date ( ' Y-m-d ' , time () + 0 ) . ' ">
69
69
<symbol number="500" name="light rain" var="10d"></symbol>
70
70
<precipitation value="0.25" type="rain"></precipitation>
71
71
<windDirection deg="315" code="NW" name="Northwest"></windDirection>
@@ -75,7 +75,7 @@ public static function forecastXML()
75
75
<humidity value="97" unit="%"></humidity>
76
76
<clouds value="overcast clouds" all="92" unit="%"></clouds>
77
77
</time>
78
- <time day=" ' . date ('Y-m-d ' ) . '">
78
+ <time day=" ' . date ('Y-m-d ' , time () + 3600 ) . '">
79
79
<symbol number="500" name="light rain" var="10d"></symbol>
80
80
<precipitation value="0.24" type="rain"></precipitation>
81
81
<windDirection deg="253" code="WSW" name="West-southwest"></windDirection>
Original file line number Diff line number Diff line change @@ -55,19 +55,12 @@ public function testCurrent()
55
55
56
56
public function testNext ()
57
57
{
58
- $ this ->forecast ->rewind ();
59
58
$ this ->forecast ->next ();
60
- $ result = $ this ->forecast ->valid ();
61
-
62
- $ this ->assertFalse ($ result );
59
+ $ this ->assertTrue ($ this ->forecast ->valid ());
63
60
}
64
61
65
62
public function testValid ()
66
63
{
67
- $ this ->forecast ->rewind ();
68
- $ this ->forecast ->next ();
69
- $ result = $ this ->forecast ->valid ();
70
-
71
- $ this ->assertFalse ($ result );
64
+ $ this ->assertTrue ($ this ->forecast ->valid ());
72
65
}
73
66
}
You can’t perform that action at this time.
0 commit comments