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

GetCollectionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetReturnsItemIfItExists() 0 13 1
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 GetCollectionTest.
17
 */
18
class GetCollectionTest extends UnitTestCase
19
{
20
    public function testGetReturnsItemIfItExists()
21
    {
22
        $exp  = $this->fixtures['assoc'];
23
        $coll = Factory::create($exp);
24
        $this->assertEquals('second', $coll->get('2nd'));
25
        $coll->remove('2nd');
26
        $this->assertNull($coll->get('2nd'));
27
        $this->assertEquals(
28
            'default',
29
            $coll->get('2nd', 'default'),
30
            'If a default is provided, Collection::get() should return it if no item is found.'
31
        );
32
    }
33
}
34