Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function testCanCreateProducer() |
||
19 | { |
||
20 | $container = $this->loadContainer('firstMessageRoute'); |
||
21 | |||
22 | $config = $container->getDefinition('prooph_asynchronous_router.firstProducer'); |
||
23 | |||
24 | self::assertEquals(AsynchronousMessageProducer::class, $config->getClass()); |
||
25 | |||
26 | /* @var $asynchronousMessageProducer AsynchronousMessageProducer */ |
||
27 | |||
28 | $asynchronousMessageProducer = $container->get('prooph_asynchronous_router.firstProducer'); |
||
29 | |||
30 | self::assertInstanceOf(AsynchronousMessageProducer::class, $asynchronousMessageProducer); |
||
31 | } |
||
32 | |||
45 |