GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — develop ( 3775f1...a1ecb7 )
by Sébastien
02:32
created

ReindexCollectionTest::testReIndexPerformsCombineKeysInPlace()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 38
Code Lines 28

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 28
nc 1
nop 0
dl 0
loc 38
rs 8.8571
c 0
b 0
f 0
1
<?php
2
/**
3
 * Novactive Collection.
4
 *
5
 * @author    Luke Visinoni <[email protected], [email protected]>
6
 * @author    Sébastien Morel <[email protected], [email protected]>
7
 * @copyright 2017 Novactive
8
 * @license   MIT
9
 */
10
11
namespace Novactive\Tests;
12
13
use Novactive\Collection\Factory;
14
15
/**
16
 * Class ReindexCollectionTest.
17
 */
18
class ReindexCollectionTest extends UnitTestCase
19
{
20
    public function testReIndexPerformsCombineKeysInPlace()
21
    {
22
        $coll = Factory::create($this->fixtures['names']);
23
24
        $this->assertEquals(
25
            [
26
                'Chelsea',
27
                'Adella',
28
                'Monte',
29
                'Maye',
30
                'Lottie',
31
                'Don',
32
                'Dayton',
33
                'Kirk',
34
                'Troy',
35
                'Nakia',
36
            ],
37
            $orig = $coll->toArray()
38
        );
39
40
        $return = $coll->reindex($this->fixtures['emails']);
41
        $this->assertSame($coll, $return);
42
        $this->assertSame(
43
            [
44
                '[email protected]' => 'Chelsea',
45
                '[email protected]'       => 'Adella',
46
                '[email protected]'   => 'Monte',
47
                '[email protected]'        => 'Maye',
48
                '[email protected]'        => 'Lottie',
49
                '[email protected]'      => 'Don',
50
                '[email protected]'       => 'Dayton',
51
                '[email protected]'       => 'Kirk',
52
                '[email protected]'      => 'Troy',
53
                '[email protected]'       => 'Nakia',
54
            ],
55
            $return->toArray()
56
        );
57
    }
58
}
59