File tree 1 file changed +21
-1
lines changed
Tests/DependencyInjection
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -430,6 +430,26 @@ public function testWithSyslogUdpHandler()
430
430
$ this ->assertEquals (514 , $ config ['handlers ' ]['syslogudp ' ]['port ' ]);
431
431
$ this ->assertEquals (0 , $ config ['handlers ' ]['syslogudp ' ]['rfc ' ]);
432
432
433
+ $ configs = [
434
+ [
435
+ 'handlers ' => [
436
+ 'syslogudp ' => [
437
+ 'type ' => 'syslogudp ' ,
438
+ 'host ' => '127.0.0.1 ' ,
439
+ 'port ' => 514 ,
440
+ 'facility ' => 'USER ' ,
441
+ 'level ' => 'ERROR '
442
+ ]
443
+ ]
444
+ ]
445
+ ];
446
+ $ config = $ this ->process ($ configs );
447
+
448
+ $ this ->assertEquals ('syslogudp ' , $ config ['handlers ' ]['syslogudp ' ]['type ' ]);
449
+ $ this ->assertEquals ('127.0.0.1 ' , $ config ['handlers ' ]['syslogudp ' ]['host ' ]);
450
+ $ this ->assertEquals (514 , $ config ['handlers ' ]['syslogudp ' ]['port ' ]);
451
+ $ this ->assertEquals (1 , $ config ['handlers ' ]['syslogudp ' ]['rfc ' ]);
452
+
433
453
$ configs = [
434
454
[
435
455
'handlers ' => [
@@ -439,7 +459,7 @@ public function testWithSyslogUdpHandler()
439
459
'port ' => 514 ,
440
460
'facility ' => 'USER ' ,
441
461
'level ' => 'ERROR ' ,
442
- 'rfc ' => SyslogUdpHandler::RFC5424e
462
+ 'rfc ' => 2
443
463
]
444
464
]
445
465
]
You can’t perform that action at this time.
0 commit comments