public function testMethodsPassNoticeAdditionsToMonolog() { $monolog = $this->mock(Logger::class); $monolog->shouldReceive('notice')->once()->with('foo', []); $monolog->shouldReceive('pushProcessor')->once(); $writer = new Writer($monolog); $writer->setEventsDispatcher($this->getEventsDispatcher()); $writer->notice('foo'); }