Code Duplication    Length = 7-7 lines in 2 locations

src/PhpValueObjects/Tests/Collection/CollectionTest.php 2 locations

@@ 97-103 (lines=7) @@
94
    /**
95
     * @test
96
     */
97
    public function itShouldReturnNext(): void
98
    {
99
        $first = $this->collection->first();
100
        $this->assertSame(1, $first->getId());
101
        $next = $this->collection->next();
102
        $this->assertSame(2, $next->getId());
103
    }
104
105
    /**
106
     * @test
@@ 108-114 (lines=7) @@
105
    /**
106
     * @test
107
     */
108
    public function itShouldReturnCurrent(): void
109
    {
110
        $this->collection->first();
111
        $this->collection->next();
112
        $current = $this->collection->current();
113
        $this->assertSame(2, $current->getId());
114
    }
115
116
    /**
117
     * @test