Example #1
0
 public function testGetFormatter()
 {
     $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
     $this->handler->expects($this->once())->method('getFormatter')->willReturn($formatter);
     $this->assertEquals($formatter, $this->wrapper->getFormatter());
 }
Example #2
0
 /**
  * @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));
 }