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 (#265)
by Jérémiah
14:36
created

ParameterTest::testParameter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Overblog\GraphQLBundle\Tests\ExpressionLanguage\ExpressionFunction\DependencyInjection;
4
5
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\DependencyInjection\Parameter;
6
use Overblog\GraphQLBundle\Tests\ExpressionLanguage\TestCase;
7
8
class ParameterTest extends TestCase
9
{
10
    protected function getFunctions()
11
    {
12
        return [new Parameter()];
13
    }
14
15
    public function testParameter()
16
    {
17
        $container = $this->getDIContainerMock([], ['test' => 5]);
18
        $this->expressionLanguage->setContainer($container);
19
        $this->assertEquals(5, eval('return '.$this->expressionLanguage->compile('parameter("test")').';'));
0 ignored issues
show
Coding Style introduced by
It is generally not recommended to use eval unless absolutely required.

On one hand, eval might be exploited by malicious users if they somehow manage to inject dynamic content. On the other hand, with the emergence of faster PHP runtimes like the HHVM, eval prevents some optimization that they perform.

Loading history...
20
    }
21
}
22