Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#7)
by Jérémiah
09:02
created

ArgumentTest   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 52
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
A testOffsetGet() 0 5 1
A testOffsetSet() 0 5 1
A testOffsetExists() 0 5 1
A testOffsetUnset() 0 4 1
A testCount() 0 4 1
A testGetRawArgs() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the OverblogGraphQLBundle package.
5
 *
6
 * (c) Overblog <http://github.com/overblog/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Overblog\GraphQLBundle\Tests\Definition;
13
14
use Overblog\GraphQLBundle\Definition\Argument;
15
16
class ArgumentTest extends \PHPUnit_Framework_TestCase
17
{
18
    /**
19
     * @var array
20
     */
21
    private $rawArgs;
22
23
    /**
24
     * @var Argument
25
     */
26
    private $argument;
27
28
    public function setUp()
29
    {
30
        $this->rawArgs = ['toto' => 'tata'];
31
32
        $this->argument = new Argument($this->rawArgs);
33
    }
34
35
    public function testOffsetGet()
36
    {
37
        $this->assertEquals($this->argument['toto'], 'tata');
38
        $this->assertNull($this->argument['fake']);
39
    }
40
41
    public function testOffsetSet()
42
    {
43
        $this->argument['foo'] = 'bar';
44
        $this->assertEquals($this->argument['foo'], 'bar');
45
    }
46
47
    public function testOffsetExists()
48
    {
49
        unset($this->argument['toto']);
50
        $this->assertNull($this->argument['toto']);
51
    }
52
53
    public function testOffsetUnset()
54
    {
55
        $this->assertTrue(isset($this->argument['toto']));
56
    }
57
58
    public function testCount()
59
    {
60
        $this->assertCount(1, $this->argument);
61
    }
62
63
    public function testGetRawArgs()
64
    {
65
        $this->assertEquals($this->rawArgs, $this->argument->getRawArguments());
66
    }
67
}
68