Code Duplication    Length = 7-8 lines in 4 locations

tests/CollectionTest.php 4 locations

@@ 87-94 (lines=8) @@
84
		$this->assertEquals(['a' => 1, 'b' => 2, 'c' => 3, 'z' => 99], $collection->getItems());
85
	}
86
87
	public function testShift()
88
	{
89
		$arr = array('a' => 1, 'b' => 2, 'c' => 3);
90
        $collection = new \Suricate\Collection($arr);
91
		$t = $collection->shift();
92
		$this->assertEquals(1, $t);
93
		$this->assertEquals(['b' => 2, 'c' => 3], $collection->getItems());
94
	}
95
96
	public function testPop()
97
	{
@@ 96-103 (lines=8) @@
93
		$this->assertEquals(['b' => 2, 'c' => 3], $collection->getItems());
94
	}
95
96
	public function testPop()
97
	{
98
		$arr = array('a' => 1, 'b' => 2, 'c' => 3);
99
        $collection = new \Suricate\Collection($arr);
100
		$t = $collection->pop();
101
		$this->assertEquals(3, $t);
102
		$this->assertEquals(['a' => 1, 'b' => 2], $collection->getItems());
103
	}
104
105
	public function testReverse()
106
	{
@@ 105-111 (lines=7) @@
102
		$this->assertEquals(['a' => 1, 'b' => 2], $collection->getItems());
103
	}
104
105
	public function testReverse()
106
	{
107
		$arr = array('a' => 1, 'b' => 2, 'c' => 3);
108
        $collection = new \Suricate\Collection($arr);
109
		$t = $collection->reverse();
110
		$this->assertEquals(['c' => 3, 'b' => 2, 'a' => 1], $t->getItems());
111
	}
112
113
	public function testReduce()
114
	{
@@ 123-130 (lines=8) @@
120
121
	}
122
	
123
	public function testTake()
124
	{
125
		$arr = array('a' => 1, 'b' => 2, 'c' => 3);
126
        $collection = new \Suricate\Collection($arr);
127
		$t = $collection->take(2);
128
		$this->assertEquals(['a' => 1, 'b' => 2], $t->getItems());
129
		
130
	}
131
132
133
    public function testFilter()