Passed
Pull Request — master (#52)
by Matthieu
20:11
created

AbstractWebTestCase::getKernelClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
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\HttpKernel\Kernel;
7
8
/**
9
 * abstract class AbstractWebTestCase
10
 */
11
abstract class AbstractWebTestCase extends WebTestCase
12
{
13
    /**
14
     * setup method
15
     */
16
    protected function setUp(): void
17
    {
18
        if (Kernel::VERSION_ID >= 50200) {
19
            return;
20
        }
21
22
        $this->markTestSkipped('These tests only run on Symfony 5.2 or higher');
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    protected static function getKernelClass()
29
    {
30
        return 'AtlassianConnectBundle\Tests\Functional\App\Kernel';
31
    }
32
}
33