Completed
Pull Request — master (#27)
by Benjamin
14:14 queued 11:46
created

BaseTestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 2
c 2
b 1
f 0
lcom 0
cbo 2
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createKernel() 0 6 2
1
<?php
2
3
namespace Alpixel\Bundle\CMSBundle\Tests\Functional;
4
5
use Symfony\Bundle\FrameworkBundle\Tests\Functional\WebTestCase;
6
7
/**
8
 * @author Benjamin HUBERT <[email protected]>
9
 */
10
class BaseTestCase extends WebTestCase
11
{
12
    protected static function createKernel(array $options = [])
13
    {
14
        return new AppKernel(
15
            isset($options['config']) ? $options['config'] : 'config.yml'
16
        );
17
    }
18
}
19