@@ -232,8 +232,7 @@ public function testRollbarHandlerCreatesNotifier()
232
232
233
233
$ handler = $ container ->getDefinition ('monolog.handler.main ' );
234
234
$ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\RollbarHandler ' );
235
- $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.rollbar.notifier.1c8e6a67728dff6a209f828427128dd8b3c2b746 ' ), \Monolog \Logger::DEBUG , true ]
236
- );
235
+ $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.rollbar.notifier.1c8e6a67728dff6a209f828427128dd8b3c2b746 ' ), \Monolog \Logger::DEBUG , true ]);
237
236
}
238
237
239
238
public function testRollbarHandlerReusesNotifier ()
@@ -456,15 +455,13 @@ public function testLogglyHandler()
456
455
$ handler = $ container ->getDefinition ('monolog.handler.loggly ' );
457
456
$ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\LogglyHandler ' );
458
457
$ this ->assertDICConstructorArguments ($ handler , [$ token , \Monolog \Logger::DEBUG , true ]);
459
- $ this ->assertDICDefinitionMethodCallAt (0 , $ handler , 'pushProcessor ' , [new Reference ('monolog.processor.psr_log_message ' )]
460
- );
458
+ $ this ->assertDICDefinitionMethodCallAt (0 , $ handler , 'pushProcessor ' , [new Reference ('monolog.processor.psr_log_message ' )]);
461
459
462
460
$ container = $ this ->getContainer ([['handlers ' => ['loggly ' => [
463
461
'type ' => 'loggly ' , 'token ' => $ token , 'tags ' => [' ' , 'foo ' , '' , 'bar ' ]
464
462
]]]]);
465
463
$ handler = $ container ->getDefinition ('monolog.handler.loggly ' );
466
- $ this ->assertDICDefinitionMethodCallAt (0 , $ handler , 'pushProcessor ' , [new Reference ('monolog.processor.psr_log_message ' )]
467
- );
464
+ $ this ->assertDICDefinitionMethodCallAt (0 , $ handler , 'pushProcessor ' , [new Reference ('monolog.processor.psr_log_message ' )]);
468
465
$ this ->assertDICDefinitionMethodCallAt (1 , $ handler , 'setTag ' , ['foo,bar ' ]);
469
466
}
470
467
@@ -487,13 +484,11 @@ public function testFingersCrossedHandlerWhenExcluded404sAreSpecified()
487
484
488
485
$ strategy = $ container ->getDefinition ('monolog.handler.main.not_found_strategy ' );
489
486
$ this ->assertDICDefinitionClass ($ strategy , 'Symfony\Bridge\Monolog\Handler\FingersCrossed\NotFoundActivationStrategy ' );
490
- $ this ->assertDICConstructorArguments ($ strategy , [new Reference ('request_stack ' ), ['^/foo ' , '^/bar ' ], \Monolog \Logger::WARNING ]
491
- );
487
+ $ this ->assertDICConstructorArguments ($ strategy , [new Reference ('request_stack ' ), ['^/foo ' , '^/bar ' ], \Monolog \Logger::WARNING ]);
492
488
493
489
$ handler = $ container ->getDefinition ('monolog.handler.main ' );
494
490
$ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\FingersCrossedHandler ' );
495
- $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested ' ), new Reference ('monolog.handler.main.not_found_strategy ' ), 0 , true , true , null ]
496
- );
491
+ $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested ' ), new Reference ('monolog.handler.main.not_found_strategy ' ), 0 , true , true , null ]);
497
492
}
498
493
499
494
public function testFingersCrossedHandlerWhenExcludedHttpCodesAreSpecified ()
@@ -535,8 +530,7 @@ public function testFingersCrossedHandlerWhenExcludedHttpCodesAreSpecified()
535
530
536
531
$ handler = $ container ->getDefinition ('monolog.handler.main ' );
537
532
$ this ->assertDICDefinitionClass ($ handler , 'Monolog\Handler\FingersCrossedHandler ' );
538
- $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested ' ), new Reference ('monolog.handler.main.http_code_strategy ' ), 0 , true , true , null ]
539
- );
533
+ $ this ->assertDICConstructorArguments ($ handler , [new Reference ('monolog.handler.nested ' ), new Reference ('monolog.handler.main.http_code_strategy ' ), 0 , true , true , null ]);
540
534
}
541
535
542
536
protected function getContainer (array $ config = [], array $ thirdPartyDefinitions = [])
0 commit comments