/** * @covers Monolog\Handler\FilterHandler::handle * @expectedException \RuntimeException */ public function testHandleWithBadCallbackThrowsException() { $handler = new FilterHandler(function ($record, $handler) { return 'foo'; }); $handler->handle($this->getRecord(Logger::WARNING)); }