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 ( 5649fc...51fa13 )
by Antonio J.
10s
created

testTwigExtensionsDefinition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 11
rs 9.4285
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
/*
4
 * AJGL Breakpoint Twig Extension Component
5
 *
6
 * Copyright (C) Antonio J. García Lagar <[email protected]>
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 Ajgl\Twig\Extension\Tests\SymfonyBundle\DependencyInjection;
13
14
use Ajgl\Twig\Extension\SymfonyBundle\DependencyInjection\AjglBreakpointTwigExtensionExtension;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
17
/**
18
 * @author Antonio J. García Lagar <[email protected]>
19
 */
20
class AjglBreakpointTwigExtensionExtensionTest extends \PHPUnit_Framework_TestCase
21
{
22
    /**
23
     * @var ContainerBuilder
24
     */
25
    protected $container;
26
27
    /**
28
     * @var AjglBreakpointTwigExtensionExtension
29
     */
30
    protected $extension;
31
32
    protected function setUp()
33
    {
34
        $this->container = new ContainerBuilder();
35
        $this->extension = new AjglBreakpointTwigExtensionExtension();
36
    }
37
38
    public function testTwigExtensionsDefinition()
39
    {
40
        $this->extension->load(array(), $this->container);
41
        $this->assertTrue($this->container->hasDefinition('ajgl_twig_extension.breakpoint'));
42
        $definition = $this->container->getDefinition('ajgl_twig_extension.breakpoint');
43
        $this->assertSame(
44
            'Ajgl\Twig\Extension\BreakpointExtension',
45
            $definition->getClass()
46
        );
47
        $this->assertNotNull($definition->getTag('twig.extension'));
48
    }
49
}
50