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