Code Duplication    Length = 5-5 lines in 2 locations

tests/CollectionTest.php 2 locations

@@ 222-226 (lines=5) @@
219
        $collection = new Collection($client, 'not under tests', ['limit' => 3]);
220
221
        $iterations = 0;
222
        foreach ($collection as $key => $actual) {
223
            $this->assertSame($key, $collection->current()->getId());
224
            $this->assertSame("a title for comic {$key}", $collection->current()->getTitle());
225
            ++$iterations;
226
        }
227
228
        $this->assertSame(5, $iterations);
229
@@ 231-235 (lines=5) @@
228
        $this->assertSame(5, $iterations);
229
230
        $iterations = 0;
231
        foreach ($collection as $key => $actual) {
232
            $this->assertSame($key, $collection->current()->getId());
233
            $this->assertSame("a title for comic {$key}", $collection->current()->getTitle());
234
            ++$iterations;
235
        }
236
237
        $this->assertSame(5, $iterations);
238
    }