Passed
Push — master ( 99e9c7...6bce95 )
by Matthieu
08:31 queued 14s
created

AbstractWebTestCase   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

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