KernelTestCase   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 12 1
1
<?php
2
3
4
namespace Pfilsx\FormLayer\Tests;
5
6
7
use Symfony\Bundle\FrameworkBundle\Console\Application;
8
use Symfony\Component\Console\Input\ArrayInput;
9
10
class KernelTestCase extends \Symfony\Bundle\FrameworkBundle\Test\KernelTestCase
11
{
12
13
    /**
14
     * @var Application
15
     */
16
    protected $application;
17
18
    protected function setUp(): void
19
    {
20
21
        $kernel = self::bootKernel();
22
        $this->application = new Application($kernel);
23
        $this->application->setAutoExit(false);
24
        $this->application->run(new ArrayInput(array(
25
            'doctrine:schema:drop',
26
            '--force' => true
27
        )));
28
        $this->application->run(new ArrayInput(array(
29
            'doctrine:schema:create'
30
        )));
31
    }
32
}
33