Completed
Push — v3.0 ( 6b6267...72438c )
by Jáchym
08:19
created

AbstractEventSubscriberTest::getConfigFiles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 7
rs 9.4285
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