public function testGetFormatter() { $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface'); $this->handler->expects($this->once())->method('getFormatter')->willReturn($formatter); $this->assertEquals($formatter, $this->wrapper->getFormatter()); }
/** * @param $result * @dataProvider trueFalseDataProvider */ public function testHandleBatch($result) { $records = $this->getMultipleRecords(); $this->handler->expects($this->once())->method('handleBatch')->with($records)->willReturn($result); $this->assertEquals($result, $this->wrapper->handleBatch($records)); }