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

WebTestCase   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
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