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.

BundleInitializationTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBundleClass() 0 4 1
A testInitBundle() 0 19 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
        // Create a new Kernel
19
        $kernel = $this->createKernel();
20
21
        // Add some configuration
22
        $kernel->addConfigFile(__DIR__.'/Resources/services.yml');
23
24
        // Boot the kernel.
25
        $this->bootKernel();
26
27
        // Get the container
28
        $container = $this->getContainer();
29
30
        // Test if you services exists
31
        $this->assertTrue($container->has('test.ob_highcharts.twig.highcharts_extension'));
32
        $service = $container->get('test.ob_highcharts.twig.highcharts_extension');
33
        $this->assertInstanceOf(HighchartsExtension::class, $service);
34
    }
35
36
}