public function testGetFormatter() { $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface'); $this->handler->expects($this->once())->method('getFormatter')->willReturn($formatter); $this->assertEquals($formatter, $this->wrapper->getFormatter()); }