1
0
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:
Jordi Boggiano
2019-08-15 21:32:19 +02:00
committed by GitHub
48 changed files with 175 additions and 170 deletions

View File

@@ -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));
}