Passed
Pull Request — master (#61)
by Matthieu
04:56
created

AbstractWebTestCase::setUp()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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