Completed
Push — master ( 8f233e...cb7239 )
by Tobias
45:50 queued 28:37
created

BaseTestCase   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 18
rs 10
1
<?php
2
3
namespace Happyr\GoogleAnalyticsBundle\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\GoogleAnalyticsBundle\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