mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 15:14:14 +02:00
Merge pull request #1359 from MarioBlazek/feature_upgrade_phpunit_to_v8
Upgrade PHPUnit to v8
This commit is contained in:
@@ -129,13 +129,15 @@ class FingersCrossedHandlerTest extends TestCase
|
||||
/**
|
||||
* @covers Monolog\Handler\FingersCrossedHandler::handle
|
||||
* @covers Monolog\Handler\FingersCrossedHandler::activate
|
||||
* @expectedException RuntimeException
|
||||
*/
|
||||
public function testHandleWithBadCallbackThrowsException()
|
||||
{
|
||||
$handler = new FingersCrossedHandler(function ($record, $handler) {
|
||||
return 'foo';
|
||||
});
|
||||
|
||||
$this->expectException(\RuntimeException::class);
|
||||
|
||||
$handler->handle($this->getRecord(Logger::WARNING));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user