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.
Test Failed
Push — develop ( 62839f...05114b )
by Sébastien
03:22
created

testSetWillSetValueOnCollectionInPlace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 0
dl 0
loc 12
rs 9.4285
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 SetCollectionTest.
17
 */
18
class SetCollectionTest extends UnitTestCase
19
{
20
    public function testSetWillSetValueOnCollectionInPlace()
21
    {
22
        $exp  = $this->fixtures['assoc'];
23
        $coll = Factory::create($exp);
24
        $this->assertEquals($exp, $coll->toArray());
25
        $this->assertSame($coll, $coll->set('1st', 'worst'), 'Collection::set() should return the collection itself.');
26
        $exp['1st'] = 'worst';
27
        $this->assertEquals($exp, $coll->toArray());
28
        $coll->set('first', 'worst');
29
        $exp['first'] = 'worst';
30
        $this->assertEquals($exp, $coll->toArray());
31
    }
32
}
33