Completed
Push — master ( 866487...6bcace )
by Dorian
04:50
created

WebTestCase::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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