| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testProcessChannel() |
||
| 18 | { |
||
| 19 | $this->container->setParameter('ekino.new_relic.log_logs', ['channels' => ['app', 'foo']]); |
||
| 20 | $this->registerService('monolog.logger', \Monolog\Logger::class); |
||
| 21 | $this->registerService('monolog.logger.foo', \Monolog\Logger::class); |
||
| 22 | |||
| 23 | $this->compile(); |
||
| 24 | |||
| 25 | $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('monolog.logger', 'pushHandler', [new Reference('ekino.new_relic.logs_handler')]); |
||
| 26 | $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('monolog.logger.foo', 'pushHandler', [new Reference('ekino.new_relic.logs_handler')]); |
||
| 27 | } |
||
| 29 |