| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function testSymfonyServiceReferencing() |
||
| 28 | { |
||
| 29 | /** @var CommandBus $commandBus */ |
||
| 30 | $commandBus = $this->container->getByType(CommandBus::class); |
||
| 31 | $this->assertInstanceOf(CommandBus::class, $commandBus); |
||
| 32 | |||
| 33 | /** @var Closure $middlewareChain */ |
||
| 34 | $middlewareChain = PHPUnit_Framework_Assert::getObjectAttribute($commandBus, 'middlewareChain'); |
||
| 35 | |||
| 36 | $output = $middlewareChain(new stdClass()); |
||
| 37 | $this->assertInstanceOf(stdClass::class, $output); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |