Code Duplication    Length = 9-9 lines in 2 locations

tests/unit/NodeCollectionTest.php 2 locations

@@ 84-92 (lines=9) @@
81
        static::assertSame($node, $item);
82
    }
83
84
    public function testFirstWithNoCallbackWillReturnTheFirstEntry()
85
    {
86
        $first = m::mock(NodeInterface::class);
87
        $second = m::mock(NodeInterface::class);
88
89
        $collection = new NodeCollection([$first, $second]);
90
91
        static::assertSame($first, $collection->first());
92
    }
93
94
    public function testLastWithNoCallbackWillReturnTheFirstEntry()
95
    {
@@ 94-102 (lines=9) @@
91
        static::assertSame($first, $collection->first());
92
    }
93
94
    public function testLastWithNoCallbackWillReturnTheFirstEntry()
95
    {
96
        $first = m::mock(NodeInterface::class);
97
        $second = m::mock(NodeInterface::class);
98
99
        $collection = new NodeCollection([$first, $second]);
100
101
        static::assertSame($second, $collection->last());
102
    }
103
104
    public function testFirstWithCallbackWillReturnTheFirstThatMatches()
105
    {