Completed
Push — master ( cb16cf...f129a6 )
by Tomáš
05:41
created

AbstractAsynchronousProducerConfiguratorTestCase   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
getConfigFile() 0 1 ?
getExpectedServiceName() 0 1 ?
A testGet_FromTestContainer_ShouldReturnAsynchronousMessageProducerInstance() 0 8 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyProoph\Tests\AsynchronousMessages;
4
5
use TomCizek\SymfonyProoph\AsynchronousMessages\AsynchronousMessageProducer;
6
use TomCizek\SymfonyProoph\Tests\Configurators\ProophTestCase;
7
8
abstract class AbstractAsynchronousProducerConfiguratorTestCase extends ProophTestCase
9
{
10
	abstract protected function getConfigFile();
11
12
	abstract protected function getExpectedServiceName();
13
14
	public function testGet_FromTestContainer_ShouldReturnAsynchronousMessageProducerInstance()
15
	{
16
		$this->givenContainerWithLoadedBundlesWithGivenConfig($this->getConfigFile());
17
18
		$producer = $this->whenGetFromContainer($this->getExpectedServiceName());
19
20
		$this->thenIsInstanceOfGivenClass(AsynchronousMessageProducer::class, $producer);
21
	}
22
}
23