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

AjglBreakpointTwigExtensionExtensionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A testTwigExtensionsDefinition() 0 11 1
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