@@ 71-79 (lines=9) @@ | ||
68 | $this->currentWeatherGroup = new CurrentWeatherGroup($this->fakeJson, 'metric'); |
|
69 | } |
|
70 | ||
71 | public function testRewind() |
|
72 | { |
|
73 | $expectIndex = 1851632; |
|
74 | $currentWeatherGroup = $this->currentWeatherGroup; |
|
75 | $currentWeatherGroup->rewind(); |
|
76 | $position = $currentWeatherGroup->key(); |
|
77 | ||
78 | $this->assertSame($expectIndex, $position); |
|
79 | } |
|
80 | ||
81 | public function testCurrent() |
|
82 | { |
|
@@ 89-97 (lines=9) @@ | ||
86 | ||
87 | $this->assertInternalType('object', $current); |
|
88 | } |
|
89 | public function testNext() |
|
90 | { |
|
91 | $expectIndex = 1851632; |
|
92 | $currentWeatherGroup = $this->currentWeatherGroup; |
|
93 | $currentWeatherGroup->next(); |
|
94 | $position = $currentWeatherGroup->key(); |
|
95 | ||
96 | $this->assertSame($expectIndex, $position); |
|
97 | } |
|
98 | ||
99 | public function testValid() |
|
100 | { |