Passed
Pull Request — master (#52)
by Matthieu
20:11
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 setUp() 0 7 2
A getKernelClass() 0 3 1
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