Code Duplication    Length = 11-13 lines in 2 locations

Tests/Asserters/CollectionAsserter.php 2 locations

@@ 192-204 (lines=13) @@
189
     *
190
     * @return $this
191
     */
192
    public function isSortedUsing(ComparatorInterface $comparator)
193
    {
194
        list($item1, $item2) = $this->checkIsSorted($comparator);
195
        if ($item1 !== null && $item2 !== null) {
196
            $this->fail(
197
                $this->_("There are items [%s, %s] that aren't ordered in the given collection", $item1, $item2)
198
            );
199
        } else {
200
            $this->pass();
201
        }
202
203
        return $this;
204
    }
205
206
    /**
207
     * @return $this
@@ 219-229 (lines=11) @@
216
     *
217
     * @return $this
218
     */
219
    public function isNotSortedUsing(ComparatorInterface $comparator)
220
    {
221
        list($item1, $item2) = $this->checkIsSorted($comparator);
222
        if ($item1 !== null && $item2 !== null) {
223
            $this->fail($this->_('The given collection is sorted'));
224
        } else {
225
            $this->pass();
226
        }
227
228
        return $this;
229
    }
230
231
    /**
232
     * @param ComparatorInterface $comparator