BundleInitializationTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBundleClass() 0 4 1
A testRegisterBundle() 0 6 1
1
<?php
2
3
namespace Nyholm\BundleTest\Tests\Functional;
4
5
use Nyholm\BundleTest\BaseBundleTestCase;
6
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
7
8
/**
9
 * @author Tobias Nyholm <[email protected]>
10
 */
11
class BundleInitializationTest extends BaseBundleTestCase
12
{
13
    protected function getBundleClass()
14
    {
15
        return FrameworkBundle::class;
16
    }
17
18
    public function testRegisterBundle()
19
    {
20
        $this->bootKernel();
21
        $container = $this->getContainer();
22
        $this->assertTrue($container->has('kernel'));
23
    }
24
}
25