KernelTestCase::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 8
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 12
rs 10
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