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
Push — annotations ( a85f92...4ec00b )
by Jérémiah
24:35 queued 10s
created

ClassUtilsTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A shortenClassFromCodeDataProvider() 0 5 1
A testShortenClassFromCode() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the OverblogGraphQLPhpGenerator 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\GraphQLGenerator\Tests;
13
14
use Overblog\GraphQLGenerator\ClassUtils;
15
16
class ClassUtilsTest extends TestCase
17
{
18
    /**
19
     * @param $code
20
     * @param $expected
21
     *
22
     * @dataProvider shortenClassFromCodeDataProvider
23
     */
24
    public function testShortenClassFromCode($code, $expected)
25
    {
26
        $actual = ClassUtils::shortenClassFromCode($code);
27
28
        $this->assertEquals($expected, $actual);
29
    }
30
31
    public function shortenClassFromCodeDataProvider()
32
    {
33
        return [
34
            ['$toto, \Toto\Tata $test', '$toto, Tata $test'],
35
            ['\Tata $test', 'Tata $test'],
36
        ];
37
    }
38
}
39