Completed
Push — master ( 09ac4b...4b8ea8 )
by Jáchym
12s
created

AbstractEventSubscriberTest::setUp()   A

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
namespace Zenify\DoctrineMigrations\Tests\EventSubscriber;
4
5
use Nette\DI\Container;
6
use PHPUnit_Framework_TestCase;
7
use Symfony\Component\Console\Application;
8
use Zenify\DoctrineMigrations\Tests\ContainerFactory;
9
10
11
abstract class AbstractEventSubscriberTest extends PHPUnit_Framework_TestCase
12
{
13
14
	/**
15
	 * @var Container
16
	 */
17
	protected $container;
18
19
	/**
20
	 * @var Application
21
	 */
22
	protected $application;
23
24
25
	protected function setUp()
26
	{
27
		$container = (new ContainerFactory)->create();
28
		$this->container = $container;
29
		$this->application = $container->getByType(Application::class);
30
	}
31
32
}
33