Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gwinn committed Mar 31, 2021
1 parent 4a21b0d commit 5275fbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions Tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,24 +454,6 @@ public function testWithSyslogUdpHandler()
$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' => [
'syslogudp' => [
'type' => 'syslogudp',
'host' => '127.0.0.1',
'port' => 514,
'facility' => 'USER',
'level' => 'ERROR',
'rfc' => 2
]
]
]
];

$this->expectException(InvalidConfigurationException::class);
$config = $this->process($configs);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/MonologExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public function testSyslogHandlerWithLogopts()

$handler = $container->getDefinition('monolog.handler.main');
$this->assertDICDefinitionClass($handler, 'Monolog\Handler\SyslogHandler');
$this->assertDICConstructorArguments($handler, [false, 'user', \Monolog\Logger::DEBUG, true, LOG_CONS]);
$this->assertDICConstructorArguments($handler, ['php', 'user', \Monolog\Logger::DEBUG, true, LOG_CONS]);
}

public function testSyslogHandlerForEmptyIdent()
Expand Down

0 comments on commit 5275fbd

Please sign in to comment.