Passed
Pull Request — master (#8)
by
unknown
09:20
created

WebTestCase::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Tests\Functional;
6
7
use Application\AppKernel;
8
use PHPUnit\Framework\TestCase;
9
use Symfony\Component\HttpKernel\HttpKernelBrowser;
10
11
/**
12
 * Web Test Case
13
 */
14
abstract class WebTestCase extends TestCase
15
{
16
    /** @var \Application\AppKernel */
17
    protected $kernel;
18
19
    /** @var \Symfony\Component\HttpKernel\HttpKernelBrowser */
20
    protected $httpKernelBrowser;
21
22
    /**
23
     * Create the application kernel for the functional tests
24
     */
25
    protected function setUp(): void
26
    {
27
        $this->kernel = new AppKernel('test', true);
28
        $this->httpKernelBrowser = new HttpKernelBrowser($this->kernel);
29
    }
30
}
31