whenBuildContainerWith()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyInteropContainer\Tests;
4
5
use Symfony\Component\DependencyInjection\ContainerInterface;
6
use TomCizek\SymfonyInteropContainer\SymfonyInteropContainerBundle;
7
use TomCizek\SymfonyInteropContainer\Tests\Configurators\ConfigFile;
8
use TomCizek\SymfonyInteropContainer\Tests\Configurators\SymfonyInteropContainerTestCase;
9
10
class SymfonyInteropContainerBundleTest extends SymfonyInteropContainerTestCase
11
{
12
	/** @var ContainerInterface */
13
	protected $container;
14
15
	public function setUp(): void
16
	{
17
		parent::setUp();
18
19
	}
20
21
	public function testBuild_OnlyThisBundle_ShouldPass()
22
	{
23
		$this->whenBuildContainerWith(
24
			[
25
				SymfonyInteropContainerBundle::class,
26
			]
27
		);
28
29
		$this->thenPass();
30
	}
31
32
	/**
33
	 * @param string[]     $bundles
34
	 * @param ConfigFile[] $configFiles
35
	 *
36
	 * @return void
37
	 */
38
	private function whenBuildContainerWith(array $bundles = [], array $configFiles = []): void
39
	{
40
		$this->container = $this->getContainerFromBootedKernelWith($bundles, $configFiles);
41
	}
42
}
43
44