Code Duplication    Length = 9-9 lines in 2 locations

tests/OpenWeatherMap/WeatherHistoryTest.php 2 locations

@@ 67-75 (lines=9) @@
64
        $this->history = new WeatherHistory($this->fakeJson, 'Berlin');
65
    }
66
67
    public function testRewind()
68
    {
69
        $expectIndex = 0;
70
        $history = $this->history;
71
        $history->rewind();
72
        $position = $history->key();
73
74
        $this->assertSame($expectIndex, $position);
75
    }
76
77
    public function testCurrent()
78
    {
@@ 86-94 (lines=9) @@
83
        $this->assertInternalType('object', $current);
84
    }
85
86
    public function testNext()
87
    {
88
        $expectIndex = 1;
89
        $history = $this->history;
90
        $history->next();
91
        $position = $history->key();
92
93
        $this->assertSame($expectIndex, $position);
94
    }
95
96
    public function testValid()
97
    {