Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function testProcessChannel() |
||
29 | { |
||
30 | $this->container->setParameter('ekino.new_relic.monolog.channels', ['app', 'foo']); |
||
31 | $this->registerService('monolog.logger', \Monolog\Logger::class); |
||
32 | $this->registerService('monolog.logger.foo', \Monolog\Logger::class); |
||
33 | |||
34 | $this->compile(); |
||
35 | |||
36 | $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('monolog.logger', 'pushHandler', [new Reference('ekino.new_relic.logs_handler')]); |
||
37 | $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('monolog.logger.foo', 'pushHandler', [new Reference('ekino.new_relic.logs_handler')]); |
||
38 | } |
||
40 |