File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed 
Tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -430,6 +430,26 @@ public function testWithSyslogUdpHandler()
430430        $ this  ->assertEquals (514 , $ config ['handlers ' ]['syslogudp ' ]['port ' ]);
431431        $ this  ->assertEquals (0 , $ config ['handlers ' ]['syslogudp ' ]['rfc ' ]);
432432
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+ 
433453        $ configs  = [
434454            [
435455                'handlers '  => [
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments