CommandBusConfiguratorTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetServiceBusByType_FromTestContainer_ShouldReturnExpectedInstance() 0 8 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyProoph\Tests\ServiceBus\ServiceBusConfigurators;
4
5
use Prooph\ServiceBus\CommandBus;
6
use TomCizek\SymfonyProoph\Tests\Configurators\ProophTestCase;
7
8
class CommandBusConfiguratorTest extends ProophTestCase
9
{
10
	private const FIXTURE_CONFIG_FILE = 'ServiceBusConfiguratorTests/CommandBusConfiguratorTest.yml';
11
12
	public function testGetServiceBusByType_FromTestContainer_ShouldReturnExpectedInstance()
13
	{
14
		$this->givenContainerWithLoadedBundlesWithGivenConfig(self::FIXTURE_CONFIG_FILE);
15
16
		$bus = $this->whenGetFromContainer(CommandBus::class);
17
18
		$this->thenIsInstanceOfGivenClass(CommandBus::class, $bus);
19
	}
20
}
21