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 (#240)
by Renato
21:21 queued 17:44
created

ExpressionFunctionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testThereIsNoEvaluator() 0 12 1
1
<?php
2
3
namespace Overblog\GraphQLBundle\Tests\ExpressionLanguage;
4
5
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction;
6
use PHPUnit\Framework\TestCase;
7
8
class ExpressionFunctionTest extends TestCase
9
{
10
    public function testThereIsNoEvaluator()
11
    {
12
        $this->expectException(\RuntimeException::class);
13
        $this->expectExceptionMessage('Evaluator is not needed');
14
15
        $expressionFunction = new ExpressionFunction('name', function () {});
16
        $evaluator = $expressionFunction->getEvaluator();
17
18
        $this->assertTrue(is_callable($evaluator));
19
20
        $evaluator();
21
    }
22
}
23