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