From df1782a1007bc73c185030682a236b75d9076987 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Mon, 1 Feb 2021 19:59:50 +0300 Subject: [PATCH] update test to check default value for rfc parameter --- .../DependencyInjection/ConfigurationTest.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Tests/DependencyInjection/ConfigurationTest.php b/Tests/DependencyInjection/ConfigurationTest.php index d165f800..7ce3519c 100644 --- a/Tests/DependencyInjection/ConfigurationTest.php +++ b/Tests/DependencyInjection/ConfigurationTest.php @@ -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' => [