Code Duplication    Length = 7-7 lines in 2 locations

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

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