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