Passed
Pull Request — master (#71)
by Matthieu
04:18
created

KernelTestCase   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getKernelClass() 0 3 1
A getContainer() 0 7 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AtlassianConnectBundle\Tests\Functional;
6
7
use AtlassianConnectBundle\Tests\Functional\App\Kernel;
8
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase as BaseKernelTestCase;
9
use Symfony\Component\DependencyInjection\ContainerInterface;
10
11
abstract class KernelTestCase extends BaseKernelTestCase
12
{
13
    protected static function getKernelClass(): string
14
    {
15
        return Kernel::class;
16
    }
17
18
    protected static function getContainer(): ContainerInterface
19
    {
20
        if (method_exists(parent::class, 'getContainer')) {
21
            return parent::getContainer();
22
        }
23
24
        return self::$container;
25
    }
26
}
27