ProophExtensionTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testLoad_ByTestKernelWithThisBundleAndFullConfig_ShouldPass() 0 6 1
A whenBootWithBundleAndConfig() 0 12 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyProoph\Tests;
4
5
use Prooph\InteropBundle\ProophInteropBundle;
6
use TomCizek\SymfonyInteropContainer\Tests\Configurators\ConfigFile;
7
use TomCizek\SymfonyProoph\ProophBundle;
8
use TomCizek\SymfonyProoph\Tests\Configurators\ProophTestCase;
9
10
class ProophExtensionTest extends ProophTestCase
11
{
12
	public function testLoad_ByTestKernelWithThisBundleAndFullConfig_ShouldPass()
13
	{
14
		$this->whenBootWithBundleAndConfig();
15
16
		$this->thenPass();
17
	}
18
19
	protected function whenBootWithBundleAndConfig()
20
	{
21
		$this->bootKernelWith(
22
			[
23
				ProophInteropBundle::class,
24
				ProophBundle::class,
25
			],
26
			[
27
				ConfigFile::record(self::FIXTURE_CONGIGS_DIR . 'FullTestConfig.yml', 'yml'),
28
			]
29
		);
30
	}
31
}
32