/** * @covers Monolog\Formatter\WildfireFormatter::formatBatch * @expectedException BadMethodCallException */ public function testBatchFormatThrowException() { $wildfire = new WildfireFormatter(); $record = array('level' => Logger::ERROR, 'level_name' => 'ERROR', 'channel' => 'meh', 'context' => array(), 'datetime' => new \DateTime("@0"), 'extra' => array(), 'message' => 'log'); $wildfire->formatBatch(array($record)); }