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