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

Kernel::getEnvironment()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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