Code Duplication    Length = 12-12 lines in 2 locations

tests/unit/Adapter/ArrayAdapterTest.php 2 locations

@@ 146-157 (lines=12) @@
143
        assertThat(iterator_to_array($iterator), is(identicalTo($merged)));
144
    }
145
146
    public function testPurge()
147
    {
148
        $iterator = $this->adapter->dequeue($this->factory, 10);
149
150
        assertThat(iterator_to_array($iterator), is(nonEmptyArray()));
151
152
        $this->adapter->purge();
153
154
        $iterator = $this->adapter->dequeue($this->factory, 10);
155
156
        assertThat(iterator_to_array($iterator), is(emptyArray()));
157
    }
158
159
    public function testDelete()
160
    {
@@ 159-170 (lines=12) @@
156
        assertThat(iterator_to_array($iterator), is(emptyArray()));
157
    }
158
159
    public function testDelete()
160
    {
161
        $iterator = $this->adapter->dequeue($this->factory, 10);
162
163
        assertThat(iterator_to_array($iterator), is(nonEmptyArray()));
164
165
        $this->adapter->delete();
166
167
        $iterator = $this->adapter->dequeue($this->factory, 10);
168
169
        assertThat(iterator_to_array($iterator), is(emptyArray()));
170
    }
171
}
172