BaseTestCase   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getKernelClass() 0 6 1
A createKernel() 0 8 2
1
<?php
2
3
namespace Happyr\AutoFallbackTranslationBundle\Tests\Functional;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
class BaseTestCase extends WebTestCase
8
{
9
    protected static function getKernelClass()
10
    {
11
        require_once __DIR__.'/app/AppKernel.php';
12
13
        return 'Happyr\AutoFallbackTranslationBundle\Tests\Functional\app\AppKernel';
14
    }
15
16
    protected static function createKernel(array $options = [])
17
    {
18
        $class = self::getKernelClass();
19
20
        return new $class(
21
            isset($options['config']) ? $options['config'] : 'default.yml'
22
        );
23
    }
24
}
25