AbstractEventSubscriberTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zenify\DoctrineMigrations\Tests\EventSubscriber;
6
7
use Nette\DI\Container;
8
use PHPUnit\Framework\TestCase;
9
use Symfony\Component\Console\Application;
10
use Zenify\DoctrineMigrations\Tests\ContainerFactory;
11
12
13
abstract class AbstractEventSubscriberTest extends TestCase
14
{
15
16
	/**
17
	 * @var Container
18
	 */
19
	protected $container;
20
21
	/**
22
	 * @var Application
23
	 */
24
	protected $application;
25
26
27
	protected function setUp()
28
	{
29
		$container = (new ContainerFactory)->create();
30
		$this->container = $container;
31
		$this->application = $container->getByType(Application::class);
32
	}
33
34
}
35