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
Pull Request — master (#100)
by Tobias
08:02
created

BundleInitializationTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBundleClass() 0 4 1
A testInitBundle() 0 13 1
1
<?php
2
3
namespace Ob\HighchartsBundle\Tests;
4
5
use Nyholm\BundleTest\BaseBundleTestCase;
6
use Ob\HighchartsBundle\ObHighchartsBundle;
7
use Ob\HighchartsBundle\Twig\HighchartsExtension;
8
9
class BundleInitializationTest extends BaseBundleTestCase
10
{
11
    protected function getBundleClass()
12
    {
13
        return ObHighchartsBundle::class;
14
    }
15
16
    public function testInitBundle()
17
    {
18
        // Boot the kernel.
19
        $this->bootKernel();
20
21
        // Get the container
22
        $container = $this->getContainer();
23
24
        // Test if you services exists
25
        $this->assertTrue($container->has('ob_highcharts.twig.highcharts_extension'));
26
        $service = $container->get('ob_highcharts.twig.highcharts_extension');
27
        $this->assertInstanceOf(HighchartsExtension::class, $service);
28
    }
29
30
}