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