Skip to content

Commit

Permalink
Updated test to run against monolog 1.12 (lowest)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphschindler committed Mar 13, 2018
1 parent 0657197 commit 66d52e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Log/LogManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ public function testLogManagerCreatesConfiguredMonologHandler()
$this->assertEquals('foobar', $logger->getName());
$this->assertCount(1, $handlers);
$this->assertInstanceOf(StreamHandler::class, $handlers[0]);
$this->assertEquals('php://stderr', $handlers[0]->getUrl());
$this->assertEquals(Monolog::NOTICE, $handlers[0]->getLevel());
$this->assertFalse($handlers[0]->getBubble());

$url = new ReflectionProperty(get_class($handlers[0]), 'url');
$url->setAccessible(true);
$this->assertEquals('php://stderr', $url->getValue($handlers[0]));

$config->set('logging.channels.logentries', [
'driver' => 'monolog',
'name' => 'le',
Expand Down

0 comments on commit 66d52e6

Please sign in to comment.