8000 Update ErrorHandlerTest · symfony/symfony@47d826d · GitHub
[go: up one dir, main page]

Skip to content

Commit 47d826d

Browse files
committed
Update ErrorHandlerTest
1 parent 70b3f6f commit 47d826d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,11 @@ public function testBootstrappingLogger()
410410
$bootLogger->log(LogLevel::WARNING, 'Foo message', array('exception' => $exception));
411411

412412
$mockLogger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
413+
414+
413415
$mockLogger->expects($this->once())
414416
->method('log')
415-
->with(LogLevel::WARNING, 'Foo message', array('exception' => $exception));
417+
->with(LogLevel::WARNING, 'Foo message', array('exception' => $exception, BufferingLogger::BOOTSTRAPPING_FLAG => true));
416418

417419
$handler->setLoggers(array(E_DEPRECATED => array($mockLogger, LogLevel::WARNING)));
418420
}
@@ -427,6 +429,7 @@ public function testHandleFatalError()
427429
'message' => 'foo',
428430
'file' => 'bar',
429431
'line' => 123,
432+
BufferingLogger::BOOTSTRAPPING_FLAG => true,
430433
);
431434

432435
$logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();

0 commit comments

Comments
 (0)
0