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.
Completed
Push — master ( e83c46...37c564 )
by Mario
01:40
created

testCompilerPassWithTwigRuntimeLoaderService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Netgen\Bundle\OpenGraphBundle\Tests\DependencyInjection\Compiler;
4
5
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Definition;
8
use Symfony\Component\DependencyInjection\Reference;
9
use Netgen\Bundle\OpenGraphBundle\DependencyInjection\Compiler\TwigRuntimePass;
10
11
class TwigRuntimePassTest extends AbstractCompilerPassTestCase
12
{
13
    protected function registerCompilerPass(ContainerBuilder $container)
14
    {
15
        $container->addCompilerPass(new TwigRuntimePass());
16
    }
17
18
    public function testCompilerPassCollectsValidServices()
19
    {
20
        $twig = new Definition();
21
        $this->setDefinition('twig', $twig);
22
23
        $this->compile();
24
25
        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall(
26
            'twig',
27
            'addRuntimeLoader',
28
            array(
29
                new Reference('netgen_open_graph.templating.twig.runtime.loader'),
30
            )
31
        );
32
    }
33
34
    public function testCompilerPassWithTwigRuntimeLoaderService()
35
    {
36
        $twig = new Definition();
37
        $this->setDefinition('twig.runtime_loader', $twig);
38
39
        $this->compile();
40
    }
41
}
42