Completed
Push — master ( 4a7116...8340e0 )
by Pavel
11:00
created

Kernel   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 7

Test Coverage

Coverage 87.5%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 7
dl 0
loc 33
ccs 14
cts 16
cp 0.875
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 10 1
A getCacheDir() 0 4 1
A getLogDir() 0 4 1
A registerContainerConfiguration() 0 4 1
A getEnvironment() 0 4 1
1
<?php
2
3
namespace Bankiru\Api\JsonRpc\Test\Tests\Fixtures;
4
5
use Bankiru\Api\JsonRpc\JsonRpcBundle;
6
use Bankiru\Api\JsonRpc\Test\JsonRpcTestBundle;
7
use Bankiru\Api\Rpc\RpcBundle;
8
use JMS\SerializerBundle\JMSSerializerBundle;
9
use Nelmio\ApiDocBundle\NelmioApiDocBundle;
10
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
11
use Symfony\Bundle\TwigBundle\TwigBundle;
12
use Symfony\Component\Config\Loader\LoaderInterface;
13
use Symfony\Component\HttpKernel\Tests\Fixtures\KernelForTest;
14
15
class Kernel extends KernelForTest
16
{
17 13
    public function registerBundles()
18
    {
19
        return [
20 13
            new FrameworkBundle(),
21 13
            new JMSSerializerBundle(),
22 13
            new RpcBundle(),
23 13
            new JsonRpcBundle(),
24 13
            new JsonRpcTestBundle(),
25 13
        ];
26
    }
27
28 13
    public function getCacheDir()
29
    {
30 13
        return sys_get_temp_dir() . '/jsonrpc-test/cache';
31
    }
32
33 1
    public function getLogDir()
34
    {
35 1
        return sys_get_temp_dir() . '/jsonrpc-test/log';
36
    }
37
38 1
    public function registerContainerConfiguration(LoaderInterface $loader)
39
    {
40 1
        $loader->load(__DIR__ . '/config.yml');
41 1
    }
42
43
    public function getEnvironment()
44
    {
45
        return 'test';
46
    }
47
}
48