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

BaseTestCase::createKernel()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 2
eloc 3
nc 1
nop 1
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