Completed
Push — master ( 192638...f858f1 )
by Ivannis Suárez
05:02
created

ReverseComparatorTests::compareDataProvider()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Core\Comparable\Tests\Units;
11
12
use Cubiche\Core\Comparable\Comparator;
13
14
/**
15
 * Reverse Comparator Tests class.
16
 *
17
 * @author Ivannis Suárez Jerez <[email protected]>
18
 * @author Karel Osorio Ramírez <[email protected]>
19
 */
20
class ReverseComparatorTests extends ComparatorTestCase
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function defaultConstructorArguments()
26
    {
27
        return array(new Comparator());
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    protected function compareDataProvider()
34
    {
35
        foreach (parent::compareDataProvider() as $key => $data) {
36
            $data[2] *= -1;
37
            yield $key => $data;
38
        }
39
    }
40
}
41