Skip to content

Commit

Permalink
update test to check default value for rfc parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gwinn committed Feb 1, 2021
1 parent de13980 commit df1782a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Tests/DependencyInjection/ConfigurationTest.php
Expand Up @@ -430,6 +430,26 @@ public function testWithSyslogUdpHandler()
$this->assertEquals(514, $config['handlers']['syslogudp']['port']);
$this->assertEquals(0, $config['handlers']['syslogudp']['rfc']);

$configs = [
[
'handlers' => [
'syslogudp' => [
'type' => 'syslogudp',
'host' => '127.0.0.1',
'port' => 514,
'facility' => 'USER',
'level' => 'ERROR'
]
]
]
];
$config = $this->process($configs);

$this->assertEquals('syslogudp', $config['handlers']['syslogudp']['type']);
$this->assertEquals('127.0.0.1', $config['handlers']['syslogudp']['host']);
$this->assertEquals(514, $config['handlers']['syslogudp']['port']);
$this->assertEquals(1, $config['handlers']['syslogudp']['rfc']);

$configs = [
[
'handlers' => [
Expand Down

0 comments on commit df1782a

Please sign in to comment.