Completed
Pull Request — master (#4)
by Alessandro
03:48
created

TestKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 4
dl 0
loc 21
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 7 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\MongoDbBundle;
6
7
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
8
use Symfony\Component\Config\Loader\LoaderInterface;
9
use Symfony\Component\HttpKernel\Kernel;
10
11
/**
12
 * Class TestKernel.
13
 */
14
class TestKernel extends Kernel
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19 2
    public function registerBundles()
20
    {
21
        return [
22 2
            new FrameworkBundle(),
23 2
            new FacileMongoDbBundle(),
24
        ];
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30 1
    public function registerContainerConfiguration(LoaderInterface $loader)
31
    {
32 1
        $loader->load(__DIR__.'/../tests/fixtures/config/config_test.yml');
33
    }
34
}