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