| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function itRegistersTestAspectViaConfiguration() |
||
| 20 | { |
||
| 21 | $configuration = require __DIR__ . '/../resources/application_config.php'; |
||
| 22 | $application = Application::init($configuration); |
||
| 23 | |||
| 24 | /** @var GoAspectContainer $container */ |
||
| 25 | $container = $application->getServiceManager()->get(AspectContainer::class); |
||
| 26 | |||
| 27 | $aspect = $container->getAspect(TestAspect::class); |
||
| 28 | |||
| 29 | $this->assertInstanceOf( |
||
| 30 | TestAspect::class, |
||
| 31 | $aspect, |
||
| 32 | 'aspect should be instance of registered test aspect class' |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |