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::testInitBundle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 19
rs 9.4285
cc 1
eloc 8
nc 1
nop 0
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
}