AbstractEventSubscriberTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

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