Code Duplication    Length = 8-8 lines in 2 locations

tests/Collection/CollectionTest.php 2 locations

@@ 38-45 (lines=8) @@
35
     *
36
     * @return void
37
     */
38
    public function testPush()
39
    {
40
        $this->collection->push(4);
41
42
        $this->assertCount(4, $this->collection);
43
        $this->assertTrue($this->collection->contains(4));
44
        $this->assertEquals(4, $this->collection->get(3));
45
    }
46
47
    /**
48
     * Test popping element from collection
@@ 80-87 (lines=8) @@
77
     *
78
     * @return void
79
     */
80
    public function testUnshift()
81
    {
82
        $this->collection->unshift(0);
83
84
        $this->assertCount(4, $this->collection);
85
        $this->assertTrue($this->collection->contains(0));
86
        $this->assertEquals(0, $this->collection->get(0));
87
    }
88
89
    /**
90
     * Test adding element to collection