Code Duplication    Length = 8-8 lines in 2 locations

tests/unit/Adapter/ArrayAdapterTest.php 2 locations

@@ 95-102 (lines=8) @@
92
        assertThat(iterator_to_array($iterator), is(identicalTo($this->messages)));
93
    }
94
95
    public function testDequeueWithNoMessages()
96
    {
97
        $adapter = new ArrayAdapter();
98
99
        $iterator = $adapter->dequeue($this->factory, null);
100
101
        assertThat(iterator_to_array($iterator), is(emptyArray()));
102
    }
103
104
    public function testDequeueWithLimitAndNoMessages()
105
    {
@@ 104-111 (lines=8) @@
101
        assertThat(iterator_to_array($iterator), is(emptyArray()));
102
    }
103
104
    public function testDequeueWithLimitAndNoMessages()
105
    {
106
        $adapter = new ArrayAdapter();
107
108
        $iterator = $adapter->dequeue($this->factory, 10);
109
110
        assertThat(iterator_to_array($iterator), is(emptyArray()));
111
    }
112
113
    public function testEnqueue()
114
    {